This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:certificate [2020/02/25 10:21] – [Check] tmade | linux:certificate [2024/07/09 10:39] (current) – [Check] tmade | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Certificate ===== | ===== Certificate ===== | ||
+ | |||
+ | ====Apache==== | ||
https:// | https:// | ||
Line 10: | Line 12: | ||
https:// | https:// | ||
+ | |||
+ | |||
+ | ====Tomcat==== | ||
https:// | https:// | ||
Line 26: | Line 31: | ||
curl -v https:// | curl -v https:// | ||
openssl s_client -connect localhost: | openssl s_client -connect localhost: | ||
+ | openssl s_client -connect localhost: | ||
openssl x509 -noout -text -in mycert.crt | openssl x509 -noout -text -in mycert.crt | ||
openssl req -noout -text -in ssl-request.csr | 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 | ||
| | ||