Create p12 from a .pem with only a private key
Estefania
stefy83 at gmail.com
Thu Feb 20 08:35:56 UTC 2020
I do not know if I explained well, i have a .pem with a private key inside
like this.
-----BEGIN PRIVATE KEY-----
masdfasdfasdfasdfasdfasdfasdff
asdfasdfasdfasdfasdfasdfasdfasf
asdfasfasdfasdfasdfasdfasdfasdf
-----END PRIVATE KEY-----
and i need to convert it to .p12
do i need a certificate aswell?
I have tried what you suggest:
$ openssl req -x509 -subj /CN=foo -keyout /dev/null -nodes | openssl pkcs12
-out x.p12 -export -nokeys
Generating a 2048 bit RSA private key
................+++
.+++
writing new private key to 'nul'
-----
Subject does not start with '/'.
problems making Certificate Request
unable to load certificates
Thanks!
--
Sent from: http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html
More information about the openssl-users
mailing list