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
两者输出一致