差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
pc:mixed:sslwithletsencrypt [2017/02/27 22:05] tony [How to?] |
pc:mixed:sslwithletsencrypt [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 4: | 行 4: | ||
原先我使用StartSSL的免費Certificate在我的web server上,後來因為此篇[[http://www.ithome.com.tw/news/108698|新聞]]的原因,導致我需要找新的方法。Let's Encrypt是Linux基金會託管項目,雖然每次證書只有三個月的效用,但可解我燃眉之急。 | 原先我使用StartSSL的免費Certificate在我的web server上,後來因為此篇[[http://www.ithome.com.tw/news/108698|新聞]]的原因,導致我需要找新的方法。Let's Encrypt是Linux基金會託管項目,雖然每次證書只有三個月的效用,但可解我燃眉之急。 | ||
===== How to? ===== | ===== How to? ===== | ||
+ | ==== 無法啟動httpd的問題 ==== | ||
我參考了[[https://blog.gtwang.org/linux/secure-nginx-with-lets-encrypt-ssl-certificate-on-ubuntu-and-debian|此篇教學]]。cerbot這隻程式將一切過程變得相當容易,首先下載cerbot: | 我參考了[[https://blog.gtwang.org/linux/secure-nginx-with-lets-encrypt-ssl-certificate-on-ubuntu-and-debian|此篇教學]]。cerbot這隻程式將一切過程變得相當容易,首先下載cerbot: | ||
<code bash> | <code bash> | ||
行 21: | 行 22: | ||
</code> | </code> | ||
在更新後,透過posthook去重新載入httpd設定。crontab設定方法可以參考此[[http://serverfault.com/questions/790772/cron-job-for-lets-encrypt-renewal|link]]。 | 在更新後,透過posthook去重新載入httpd設定。crontab設定方法可以參考此[[http://serverfault.com/questions/790772/cron-job-for-lets-encrypt-renewal|link]]。 | ||
+ | ==== 多個domain的問題 ==== | ||
+ | 在完成上面步驟後,我發現www.tonylin.idv.tw可以正常使用,而tonylin.idv.tw不行。後來得知可以透過以下指令擴展domain名稱: | ||
+ | <code bash> | ||
+ | ./certbot-auto -d www.tonylin.idv.tw -d tonylin.idv.tw | ||
+ | </code> | ||
+ | 在執行時,它會問你要擴展還是取代原本的,選擇擴展即可:\\ | ||
+ | {{:pc:mixed:letsecrypt_extend_multi_domain.png|}}\\ | ||
+ | 最後重新載入httpd即完成。 | ||
===== Reference ===== | ===== Reference ===== | ||
* [[https://scheng.tk/blog/1066/8-free-ssl|8個免費SSL證書]] | * [[https://scheng.tk/blog/1066/8-free-ssl|8個免費SSL證書]] | ||
* [[https://blog.gtwang.org/linux/secure-nginx-with-lets-encrypt-ssl-certificate-on-ubuntu-and-debian/|NGINX 使用 Let’s Encrypt 免費 SSL 憑證設定 HTTPS 安全加密網頁教學]] | * [[https://blog.gtwang.org/linux/secure-nginx-with-lets-encrypt-ssl-certificate-on-ubuntu-and-debian/|NGINX 使用 Let’s Encrypt 免費 SSL 憑證設定 HTTPS 安全加密網頁教學]] | ||
* [[http://www.linuxquestions.org/questions/linux-server-73/apache-won't-start-module-ssl_module-is-already-loaded-fixed-700972/|Apache Httpd無法載入SSL模組的問題]] | * [[http://www.linuxquestions.org/questions/linux-server-73/apache-won't-start-module-ssl_module-is-already-loaded-fixed-700972/|Apache Httpd無法載入SSL模組的問題]] | ||
+ | * [[https://community.letsencrypt.org/t/certificate-valid-for-non-www-and-www-as-well/3725/4|如何讓www與non-www的certificate可同時使用]] | ||
===== ===== | ===== ===== | ||
---- | ---- | ||
\\ | \\ | ||
~~DISQUS~~ | ~~DISQUS~~ |