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

兩者輸出一致


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章