SSL check .key and check .pem
Last updated
Last updated
To quickly make sure the files match, display the modulus value of each file:
If everything matches (same modulus), the files are compatible public key-wise (but this does not guaranty the private key is valid). If not, one of the file is not related to the others. N.B.: Modulus only applies on private keys and certificates using RSA cryptographic algorithm. If you generate an ECC (Elliptic Curve Cryptography) private key or if your certificate is signed with ECC you won't find a modulus. N.B.2: For a detailed cryptographic verification, see Hanno Böck's script
To check and verify ssl
cat 28eb6exxxxx.crt gd_bundle-g2-g1.crt > key.crt edit private key.txt with uff8
Notepad++ encoding from UTF-8 to ANSI did it for me. Change Encoding, saved, scp / winscp / copy to server. done.
The Unix version of this is to save time with copy processes:
cd /etc/nginx/conf.d/