SSL on nginx

From openwfm
Revision as of 06:07, 3 September 2020 by Jmandel (talk | contribs) (https://phoenixnap.com/kb/letsencrypt-nginx)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

https://nginx.org/en/docs/http/configuring_https_servers.html

server {

   listen              80;
   listen              443 ssl;
   server_name         www.example.com;
   ssl_certificate     www.example.com.crt;
   ssl_certificate_key www.example.com.key;
   ...

}

following https://phoenixnap.com/kb/install-ssl-certificate-nginxm certificate goes in cat your_domain.crt intermediate.crt root.crt >> ssl-bundle.crt save the ssl-bundle.crt file in the etc/ssl directory. ``

https://phoenixnap.com/kb/letsencrypt-nginx