This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:certificate [2019/04/29 17:12] – [Server Certificate] tmade | linux:certificate [2021/10/01 23:37] (current) – tmade | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Certificate ===== | ===== Certificate ===== | ||
+ | |||
+ | ====Apache==== | ||
https:// | https:// | ||
Line 10: | Line 12: | ||
https:// | https:// | ||
+ | |||
+ | |||
+ | ====Tomcat==== | ||
https:// | https:// | ||
Line 24: | Line 29: | ||
====Check==== | ====Check==== | ||
- | curl -v https:/domain.com | + | curl -v https://mydomain.com # |
- | openssl s_client -connect localhost: | + | 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 | ||
| | ||