尝试设置启用客户端验证的启用SSL的nginx服务器时,我的浏览器出现标题错误
下面是我的nginx.conf:
keepalive_timeout 100;
server_tokens off;
server {
listen 10.111.1.11:11111;
server_name localhost;
ssl on;
ssl_certificate ca.crt;
ssl_certificate_key newca.key;
ssl_client_certificate client.crt;
ssl_verify_client on;
location / {
root html;
index index.html index.htm;
proxy_ssl_session_reuse off;
proxy_pass http://10.111.1.11::1234;
proxy_ssl_name 10.111.1.11;
proxy_ssl_server_name on;
proxy_ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
proxy_ssl_ciphers HIGH:!aNULL:!MD5;
proxy_ssl_certificate ca.crt;
proxy_ssl_certificate_key newca.key;
}
}
以下是我生成证书和密钥的步骤:
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
openssl genrsa -des3 -out client.key 4096
openssl req -new -key client.key -out client.csr
openssl x509 -req -days 365 -in client.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out client.crt
openssl pkcs12 -export -clcerts -inkey client.key -in client.crt -out client.p12 -name "MyKey"
openssl rsa -in ca.key -out newca.key
openssl rsa -in client.key -out newclient.key
我尝试将client.crt和client.p12作为受信任的根证书颁发机构上载到我的浏览器,但仍然无济于事(相同的错误)。
有什么提示吗?