Sakamoto's blog

隨筆、雜記、開箱

申請並設定免費的SSL憑證(Let’s Encrypt)
筆記

申請並設定免費的SSL憑證(Let’s Encrypt)

Setup SSLLet’s Encrypt是一個非營利組織,提供免費的TLS/SSL 憑證,透過Cerbot這個自動化工具,就可以讓網站使用HTTPS加密網頁,也能自動的更新憑證。 下載SSL憑證Let’s Encrypt可以手動更新也可以透過指令工具進行下載,這邊使用官方建議的Certbot自動化工具來下載。 從 Certbot 官方網站下載  certbot-auto ,設定執行權限,並將它放在 /opt 下: wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto mkdir /opt/letsencrypt mv certbot-auto /opt/letsencrypt/ 執行 certbot-auto,讓它自動安裝所有相依套件(需要root權限): /opt/letsencrypt/certbot-auto 接著我們要透過 webroot 的方式,使用既有的