以前普通网站好像都不太需要弄ssl证书的,现在搞得啥网站都需要ssl证书了。不然浏览器就给你http链接上弄个“不安全”字样。
使用 OpenSSL 命令:
打开终端或命令行界面,并运行以下命令:
openssl x509 -in /path/to/your/certificate.pem -text -noout
将 /path/to/your/certificate.pem
替换为您的证书文件的实际路径。
例如我为我的网站申请的证书自动存放在位/etc/letsencrypt/live/kuyour.top/文件夹里面:
/etc/letsencrypt/live/kuyour.top/fullchain.pem
/etc/letsencrypt/live/kuyour.top/privkey.pem
查询我为我的网站申请的证书有效日期:
openssl x509 -in /etc/letsencrypt/live/kuyour.top/fullchain.pem -text -noout
你申请成功后会提示类似下面的文字:
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/kuyour.top/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/kuyour.top/privkey.pem
Your certificate will expire on 2025-01-28. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew *all* of your
certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
发表回复