![]() ![]() There, the "alias name" field indicates the storage name of your certificate you need to use in the command line. To do so, you can execute the following command: keytool -v -list -storetype pkcs12 -keystore FILE_PFX PFX file, you'll have to retrieve the "alias" name created by Windows. In case you would export your certificate from a Windows server generating a. ALIAS_SRC: name matching your certificate entry in the PKCS#12 file, "tomcat" for example.PASSWORD_JKS: password that will be requested at the keystore opening.If it does not exist it will be created automatically. MY_KEYSTORE.jks: path to the keystore in which you want to store your certificate.MY_FILE.p12: indicate the path to the PKCS#12 file (.p12 or.deststoretype jks -deststorepass -destalias If you do have Keytool application and your PKCS#12 file, launch the one-line command: keytool -importkeystore -srckeystore -srcstoretype pkcs12 (I ran a utility to combine the two keys into keystore.ImportKey ) keytool -importkeystore -srckeystore keystore.ImportKey -destkeystore target.JKS Openssl x509 -in src.cer -inform PEM -out r -outform DER (Edit src.pem into its two composite parts called src.key and src.cer) openssl pkcs8 -topk8 -nocrypt -in src.key -out key.der -inform PEM -outform DER I also tried using openssl to convert the P12 -> PEM -> DER -> JKS: openssl pkcs12 -in src.p12 -out src.pem -clcerts Here is the standard command for importing a P12 keystore into a JKS keystore - keytool -importkeystore -srckeystore src.p12 -srcstoretype PKCS12 -deststoretype JKS -destkeystore target.jks Using the P12 file with SOAPUI against the same endpoint produces a successful response. However, when I try and use the resulting JKS file to access the WS endpoint via SOAPUI, I get a 403.7 error - Forbidden: SSL certificate is required. ![]() I've followed the standard commands using Java's keytool utility. ![]() P12 certificate file into a JKS keystore. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |