> jbenn...@jbennett-laptop:~/temp$ sudo openssl pkcs12 -in nbic.pfx -clcerts > -nokeys -out publicCert.pem > [sudo] password for jbennett: > Enter Import Password: > MAC verified OK > jbenn...@jbennett-laptop:~/temp$ sudo openssl pkcs12 -export -chain -CAfile > gd_bundle.crt -in nbic.com.crt -inkey publicCert.pem -out keystore.tomcat > -name tomcat -passout pass:******* > unable to load private key
Does nbic.pfx contain a keypair? IIRC that is a microsoft extension for PEM-encoded PKCS12, in which case you can use directly in tomcat since the JSSE supports PKCS12 keystores: <Connector ... keystoreFile="/path/to/nbic.pfx" keystorePass="pkcs12password" keystoreType="PKCS12" ... /> In any case the second command really looks like you are not importing a _private_ key as needed to form a keypair since the key name is "publicCert.pem". That is backed up by the fact that you said "-nokeys" in the first command. Recall an X.509 certificate _contains_ the public key, so you get that naturally. However, you must supply the _private_ key for the keypair. M -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
