ssl - Install PFX programmatically in Java -
i have generated certificates using openssl command line. out of batch of generated certificates install pfx manually on server enabling https call website. pfx generated using following command -
openssl pkcs12 -export -in ca.crt -inkey ca.key -out ca.pfx
i install on server right click , "install certificate" (with no password).
i wish through java code. tried using java keytool -
keytool -importkeystore -srckeystore "c:\ca.pfx" -srcstoretype pkcs12 -destkeystore clientcert.jks -deststoretype jks
this prompts me destination password , keystore password , without providing password not succeeding.
1) correct way of installing pfx on server. i.e. add certificate keystore (java installed jre location ) , not windows current user certificates (mmc-> file -> add/remove snap in -> certificate -> user account -> personal -> certificates).
2) there better way of installing pfx using java.
Comments
Post a Comment