2017年1月發(fā)布的Chrome 56瀏覽器開始把收集密碼或信用卡數(shù)據(jù)的HTTP頁面標(biāo)記為“不安全”抒抬,若用戶使用2017年10月推出的Chrome 62,帶有輸入數(shù)據(jù)的HTTP頁面和所有以無痕模式瀏覽的HTTP頁面都會(huì)被標(biāo)記為“不安全”映之,此外,蘋果公司強(qiáng)制所有iOS App在2017年1月1日前使用HTTPS加密.
下面簡單介紹一下用certbot為nginx站點(diǎn)添加ssl證書過程
步驟
1.下載certbot
2.配置部署ssl
certbot 在文檔做的非常好,并且官網(wǎng)針對不同的系統(tǒng),不同的站點(diǎn)提供不同的下載命令
官網(wǎng)地址:https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx
安裝過程
1,選擇自己需要運(yùn)行站點(diǎn),以及服務(wù)器的系統(tǒng)
image.png
2.選擇完以后,下面會(huì)出現(xiàn)安裝的步驟,跟著敲就行
image.png
例子:這里以nginx為例,安裝步驟如下
1.添加 Certbot PPA
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
2.安裝certbot
sudo apt-get install certbot python-certbot-nginx
3.獲取并安裝證書
sudo certbot --nginx
# 或者可以選擇只獲取證書,不安裝
sudo certbot certonly --nginx
運(yùn)行上面命令后,就會(huì)到安裝過程中
1.填寫email(以后有問題都會(huì)發(fā)郵件到指定郵箱)
2.是否接受協(xié)議
3.是否分享郵件地址
4.選擇需要加證書的域名,空格是選擇全部
5.選擇是否http重定向https
借鑒https://steembr.com/cn/@oflyhigh/certbotnginxssl-2019-07-12