一些些的code、一點點的Life,這就是生活。
上網站填寫資料
https://www.sslforfree.com/
(注意:這種做法有資安疑慮)
都填完後會有一個下載壓縮檔給你 sslforfree.zip
解壓縮後丟到某個目錄去即可 例如像是
/etc/letsencrypt/live/sslforfree
壓縮檔裡面應該會有 private.key certificate.crt ca_bundle.crt三個檔案
你的apache的ssl.conf (/etc/httpd/conf.d/ssl.conf)裡面加上
SSLCertificateFile /etc/letsencrypt/live/sslforfree/certificate.crt
SSLCertificateKeyFile /etc/letsencrypt/live/sslforfree/private.key
# Certificate Authority (CA):
SSLCACertificateFile /etc/letsencrypt/live/sslforfree/ca_bundle.crt
這幾行後
#service httpd restart
即可
一個不務正業,甚麼科技產品都玩的網路宅宅。 If you want to find me,that's easy! I will always on the Internet. so just find me, follow me. I will show you everything fun.