To configure an HTTPS server, the ssl
parameter must be enabled on listening sockets in the server
block, and the locations of the server certificate and private key files should be specified:
server {
listen 443 ssl;
server_name www.example.com;
ssl_certificate www.example.com.crt;
ssl_certificate_key www.example.com.key;