Difference between revisions of "Openssl"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
... | ... | ||
</VirtualHost> | </VirtualHost> | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | openssl s_client -servername google.com -connect google.com:8201 | openssl x509 -noout -dates | ||
``` | ``` |
Revision as of 18:23, 27 May 2021
https://www.redhat.com/sysadmin/6-openssl-commands
Extract cert and key
openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.crt openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key
Update your Apache configuration file with:
<VirtualHost 192.168.0.1:443> ... SSLEngine on SSLCertificateFile /path/to/domain.crt SSLCertificateKeyFile /path/to/domain.key ... </VirtualHost>
openssl s_client -servername google.com -connect google.com:8201 | openssl x509 -noout -dates