Lets Encrypt 申请免费SSL证书

Posted by Vincent on Wednesday, April 8, 2020

申请SSL

docker run -it --rm  -v /Users/vincentmi/cert:/etc/letsencrypt  certbot/certbot  certonly --manual  --preferred-challenges dns

路径

SSL保存路径为 /Users/vincentmi/cert/live/philo.in

NGINX 配置

server {
        listen 443 ssl http2;
        server_name *.dev.philo.in;
        ssl_certificate /Users/vincentmi/cert/live/philo.in/fullchain.pem;
        ssl_certificate_key /Users/vincentmi/cert/live/philo.in/privkey.pem;
}

更新SSL

docker run -it --rm  -v /Users/vincentmi/cert:/etc/letsencrypt  certbot/certbot  renew

「真诚赞赏,手留余香」

我的乐与怒

真诚赞赏,手留余香

使用微信扫描二维码完成支付