nginx支持ssl双向认证配置

nginx支持ssl双向认证配置

        listen      443;
        server_name test.com;

        ssl on;
        ssl_certificate server.crt; //server端公钥
        ssl_certificate_key server.key; //server端私钥
        ssl_client_certificate client.crt; //client端公钥
        ssl_session_timeout 5m;
        ssl_verify_client on; //开启client验证

相关参考
http://wiki.nginx.org/HttpSslModule#ssl

posted on 2017-06-05 18:15  IT超级码农  阅读(528)  评论(0编辑  收藏  举报