Example!!
"""
# file server.pem
"""
server.pem: UTF-8 Unicode (with BOM) text
output "server.pem: UTF-8 Unicode (with BOM) text" means it is a plain text, not a key file. The correct output should be "server.key: PEM RSA private key".
Use below command to remove illegal characters:
tail -c +4 server.pem > serverFixed.key
Verify a private key matches an certificate:
openssl x509 -noout -modulus -in server.crt | openssl md5
openssl rsa -noout -modulus -in server.key | openssl md5
openssl req -noout -modulus -in server.csr | openssl md5
0 Comments