Skip to main content
Menu
nginx | Cheatsheets
nginx

Setup SSL/TLS using certbot with NGINX

January 6, 2020
linux
nginx

Install Certbot # add-apt-repository ppa:certbot/certbot apt-get update apt-get install python-certbot-nginx Obtain the SSL/TLS Certificate # certbot --nginx -d xyz.com -d www.xyz.com Obtain wildcard Certificate # certbot certonly --manual -d '*.xyz.com' Install NGINX # apt-get install nginx -y Set Up NGINX # NGINX Config file # /etc/nginx/nginx.conf # user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## map $http_upgrade $connection_upgrade { default upgrade; '' close; } sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime. ...