Nginx配置ssl证书

server {
    listen       80;
    listen       443 ssl;
    server_name  localhost;
    ssl_certificate      /SSLPATH/zhang.crt;
    ssl_certificate_key  /SSLPATH/zhang.key;
    location / {
        # TOMCAT
        proxy_pass http://localhost:5566;
    }
}

OPENSSL 自签证书

推荐阅读更多精彩内容