Last active
September 26, 2024 03:36
-
-
Save csamsel/edb58d84363aa6c18be0f45be7908d34 to your computer and use it in GitHub Desktop.
convert ssl certificates from pem to crt/key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl rsa -outform der -in privkey.pem -out privkey.key | |
openssl x509 -outform der -in fullchain.pem -out fullchain.crt | |
openssl x509 -outform der -in cert.pem -out cert.crt |
openssl crl2pkcs7 -nocrl -certfile your-cert.pem | openssl pkcs7 -print_certs -out your-cert.crt
with this command openssl x509 -outform der -in cert.pem -out cert.crt
The generated size of .crt is less compare to .pem file
openssl crl2pkcs7 -nocrl -certfile your-cert.pem | openssl pkcs7 -print_certs -out your-cert.crt
This one works great for me, thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks this is really helpful.