使用 Cerbot 部署 Let's Encrypt免費證書 簡單 升級 http 到 https 申請單域名ssl證書

升級環境是centos 7  服務器apache 

服務器應具有的環境先運行

yum -y install yum-utils 
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

完成這個之後,便可以通過運行來安裝cerbot:

sudo yum install certbot-apache      適用於apache環境
使用cerbot 生成證書繼續執行:
certbot certonly --webroot -w /var/www/example/ -d www.ws520.xin -d youdomain.com -w /var/www/other -d other.example.net -d another.other.example.net

-w 項目根目錄  eg.(/phpstudy/www/youproject/);

-d 域名地址  eg.(www.ws520.xin)要進行申請證書的域名 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章