[精讚] [會員登入]

[SSL] 免費的SSL憑證(三個月)

免費三個月的SSL憑證,讓你的網頁變成HTTPS

此文完整連結 http://n.sfs.tw/m10373

複製連結 [SSL] 免費的SSL憑證(三個月)@精讚
(文章歡迎轉載,請尊重版權註明連結來源)
2017-09-26 11:00:31 By 瘦河馬

能找到有上下游都授權正確的憑證中心而且是免費的,雖然只有免費三個月,但還是值得推薦,設定和操作上很容易,對經驗不夠的人來說也很快能上手。

安裝及設定

安裝設定很簡單,以CentOS7為例

# yum install certbot-apache
# certbot --apache

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org

Which names would you like to activate HTTPS for?
-------------------------------------------------------------------------------
1: n.sfs.tw
-------------------------------------------------------------------------------
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for n.sfs.tw
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/httpd/conf.d/wildfly-le-ssl.conf
Deploying Certificate for n.sfs.tw to VirtualHost /etc/httpd/conf.d/wildfly-le-ssl.conf

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Redirecting vhost in /etc/httpd/conf.d/wildfly.conf to ssl vhost in /etc/httpd/conf.d/wildfly-le-ssl.conf

-------------------------------------------------------------------------------
Congratulations! You have successfully enabled https://n.sfs.tw

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=n.sfs.tw
-------------------------------------------------------------------------------

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/oidc.boe.ttct.edu.tw/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/oidc.boe.ttct.edu.tw/privkey.pem
   Your cert will expire on 2017-12-25. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. 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

這樣就好了

重啟APACHE,打開你的https://exampe.com 網站吧

三個月到期刷新你的憑證

# certbot renew

 

[相關連結]

https://letsencrypt.org/

你可能有興趣

消一行都很難的俄羅斯方塊

這真是很虐人的俄羅斯方塊,不騙你要消一行都很難

膳魔師 ths-1500-cbw 保溫壺蓋拆洗方法

膳磨師 ths-1500-cbw 保溫壺蓋拆洗方法

Linux上強制cp複製不詢問的方法

cp forced copy 強制複製不詢問

[WORD2011] MAC上的word要怎麼搜尋及取代文字

MAC上的word 2011要怎麼搜尋及取代文字,找了好久

[Pietty/Putty] 解決expected key exchange group packet from server 的問題

解決錯誤 FATAL ERROR: expected key exchange group packet from server 的問題

[MySQL/Mariadb] 修改預設的連線埠號3306

CENTOS7如果不想使用預設的3306埠想改成別的埠,如何設定?