發表文章

目前顯示的是有「ssl」標籤的文章

CENTOS7 安裝 NGINX 並請申請 Letsencrypt SSL憑證使用

圖片
CENTOS7 安裝 NGINX 並請申請 Letsencrypt SSL憑證使用 # 首先先看看網路上的教學安裝文章, 照著作把 nginx 安裝起來 https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7 # 然後安裝憑證, 這個 Letsencrypt 目前用程式安裝憑證 https://letsencrypt.org/ # 請依據制這裡的說明, 安裝程式及工具 https://certbot.eff.org/#centosrhel7-nginx # 先把 domain FQDN 對應 IP 設定好 # 執行憑證申請及安裝, 因為 Letsencrypt 有縣市 IP 及 Domain 所以申請盡可能一次就成功。 # 依據說明執行 [root@dev letsencrypt]# certbot --nginx Saving debug log to /var/log/letsencrypt/letsencrypt.log Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org Which names would you like to activate HTTPS for? ------------------------------------------------------------------------------- 1: api.jangmt.com 2: dev.jangmt.com ------------------------------------------------------------------------------- Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter 'c' to cancel): 2 Obtaining a new certificate Perfor...

檢查 https 的 SSL 憑證何時過期?

圖片
# 這是簽發的機構 root 憑證過期日 [root@ssl]# openssl x509 -enddate -noout -in ca_bundle.crt  notAfter=Mar 17 16:40:46 2021 GMT # 這是你的 https 憑證過期日 [root@v1 ssl]# openssl x509 -enddate -noout -in certificate.crt  notAfter=Jun 15 02:53:00 2017 GMT 2017 年 6 月 15 日會過期 憑證申請 https://www.sslforfree.com/  ref: http://www.esate.com/tc/images/page_ssl_works.png ref: http://www.esate.com/tc/images/page_ssl_works.png