首页 > 代码库 > yan证书与秘钥 匹配

yan证书与秘钥 匹配

Openssl: make sure your certificate matches the private key

To make sure the files tally, display the modulus value of each file:

openssl rsa -noout -modulus -in FILE.key
openssl req -noout -modulus -in FILE.csr
openssl x509 -noout -modulus -in FILE.cer

If everything matches (same modulus), the files are compatible. If not, One of the file is not linked to the others.


上述的值 输出一样 就是匹配的

    openssl rsa -noout -modulus -in expamle.com.key

    openssl x509 -noout -moduls -in expamle.com.crt

两者输出一致


yan证书与秘钥 匹配