SSL on nginx

From openwfm
Revision as of 06:00, 3 September 2020 by Jmandel (talk | contribs) (Created page with "https://nginx.org/en/docs/http/configuring_https_servers.html server { listen 80; listen 443 ssl; server_name www.example.com;...")
(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.