1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
##### install letsencrypt(certbot) ##### sudo yum install epel-release sudo yum install certbot sudo yum install certbot-nginx certbot certonly --webroot -w /var/www/dev.easywaru.com/html -d dev.easywaru.com ##### nginx setting ##### sudo nano /etc/nginx/sites-available/dev.easywaru.com.conf server { listen 443 ssl https; server_name dev.easywaru.com ssl_certificate /etc/letsencrypt/live/dev.easywaru.com/cert.pem; ssl_certificate_key /etc/letsencrypt/live/dev.easywaru.com/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ... other server setting ... } |