1
I have a .pem file which contains both my certificate and encrypted private key, ie:
Bag Attributes
....
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----
Bag Attributes
....
-----BEGIN ENCRYPTED PRIVATE KEY-----
....
-----END ENCRYPTED PRIVATE KEY-----
And I need to instead have a .pem file containing both the certificate and the decrypted private key. How can I achieve this on linux, preferrably utilising the openssl application?
I think you need a subcommand in there. Maybe
pkey
? Please @ me when you fix it and I'll remove my downvote. – Spiff – 2018-03-21T19:51:13.267Yes, it should be
pkey
for new format keys (PKCS8) orrsa
for the older PKCS1. – user1686 – 2018-03-21T21:59:14.627Added suggestion of @Spiff – bbaassssiiee – 2018-03-24T08:09:18.650
To do it without editing:
openssl x509 <in >out; openssl pkey <in >>out
– dave_thompson_085 – 2018-03-24T10:04:12.190