[Logo]
Forums Register Login
Need to create stashed file of p12 keystore
Hi,

I am able to create p12 keystore using java API but the problem I face is that IHS server expect me to produce stashed file of P12 keystore. I have no idea how to implement and what api can be used to generate the stashed file so that IHS server can directly read and use it for secure communication.
The below code is used to create p12 keystore using java 7.I am creating the certificate using bouncy castle api.

KeyStore keyStore = KeyStore.getInstance("pkcs12");
X509Certificate cert1= (X509Certificate)cert;      
X509Certificate[] chain = new X509Certificate[1];
chain[0]=cert1;
keyStore.setKeyEntry("private", key, "password".toCharArray(), chain);      
keyStore.store(new FileOutputStream(keyPath+"/mykeystore.p12"), "password".toCharArray());

Regards
Sandeep Shukla
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 116 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 22, 2018 13:19:56.