This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:certificate [2018/07/09 14:25] – [Certificate] tmade | linux:certificate [2021/10/01 23:36] – tmade | ||
---|---|---|---|
Line 21: | Line 21: | ||
openssl x509 -hash -noout -in test-certificate.pem | openssl x509 -hash -noout -in test-certificate.pem | ||
ln -s test-certificate.pem `openssl x509 -hash -noout -in test-certificate.pem`.0 | ln -s test-certificate.pem `openssl x509 -hash -noout -in test-certificate.pem`.0 | ||
+ | |||
+ | ====Check==== | ||
+ | |||
+ | curl -v https:// | ||
+ | openssl s_client -connect localhost: | ||
+ | openssl x509 -noout -text -in mycert.crt | ||
+ | openssl req -noout -text -in ssl-request.csr | ||
+ | | ||
+ | ====Compare==== | ||
+ | Check if my.key matches my.crt: | ||
+ | |||
+ | openssl rsa –noout –modulus –in my.key | openssl md5 | ||
+ | openssl x509 –noout –modulus –in my.crt | openssl md5 | ||
+ | | ||