Last active
November 21, 2019 06:36
-
-
Save daubac402/72043bae7f60aa0ce17dbd19a1ebbc8c to your computer and use it in GitHub Desktop.
Convert .cer > .crt
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 x509 -inform DER -in certificate.cer -out certificate.crt | |
# if error, try this: | |
openssl x509 -inform PEM -in certificate.cer -out certificate.crt | |
# With nginx SSL setting, it only uses .key and .pem | |
# build this .pem file with .crt and then append .cer (SSL chain) into it | |
cat your_file.crt your_file.cer > your_file.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment