ssl private key - simeonlam/knowledge GitHub Wiki

private key to rsa private key

openssl rsa -in {input private key} -out private-rsa.key 

compare private and SSL cert is pair

# get module value from cert
openssl x509 -in certificate.crt -modulus -noout

# get module value from private key
openssl rsa -in certificate.key  -noout -modulus

cert need add x permission to cert and key

chmod 755 private-rsa.key cert.crt