Monday, June 4, 2012

Comparing SSL KEY/CSR/CRT

 Comparing openssl key/csr/crt is useful to make sure signature between key/csr/crt are same

openssl x509 -noout -modulus -in certificate.crt | openssl md5
829508f3f3ffb58fda4a49db4b01506d

openssl rsa -noout -modulus -in privateKey.key | openssl md5
829508f3f3ffb58fda4a49db4b01506d

openssl req -noout -modulus -in CSR.csr | openssl md5
829508f3f3ffb58fda4a49db4b01506d


Here you got a signature which is common with key/csr/crt which make sure like everything is in right place.

3 comments:

Anonymous said...

Usefull thx

Anonymous said...

Excellent article...I installed at least 100 certificates this year in my organization. Thanks a Ton

Prajith E P said...

Good one

curl and cacert

curl -v --cacert cacert.pem https://www.example/cgi-bin/f ile.xgi -I -X POST