I've installed my certificate for my apache server and now want to
export/move the certificate for the Tomcat server on the same machine. I'm
using the following command:
bin\openssl pkcs12 -export -in \xampp\apache\conf\ssl.crt\apache.crt
-inkey \xampp\apache\conf\ssl-key\server.key -out
\xampp\tomcat\conf\key\tomcat.p12
-name tomcat -chain -CAfile \xampp\apache\conf\ssl.crt\gd_bundle.crt
-passout pass:changeit
The command fails with the following error:
Loading 'screen' into random state - done
Error opening private key \xampp\apache\conf\ssl-key\server.key
4364:error:02001003:system library:fopen:No such
process:.\crypto\bio\bss_file.c
:356:fopen('\xampp\apache\conf\ssl-key\server.key','rb')
4364:error:20074002:BIO routines:FILE_CTRL:system
lib:.\crypto\bio\bss_file.c:35
8:
unable to load private key
The server.key that I've got in the command is the server.key that I
received with my certificate. Now in looking at the OpenSSL docs it looks
like that file might need to be in a pem format. Can anyone confirm that?
If that's the case how do I generate the pem file from my server.key? Any
help would be appreciated.
--
View this message in context:
http://www.nabble.com/Export-Move-Certificate-failure-tp25242579p25242579.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]