Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl HAProxy在关闭后丢失客户端证书_Ssl_Curl_Haproxy_Client Certificates - Fatal编程技术网

Ssl HAProxy在关闭后丢失客户端证书

Ssl HAProxy在关闭后丢失客户端证书,ssl,curl,haproxy,client-certificates,Ssl,Curl,Haproxy,Client Certificates,我设置了HAProxy 1.5.14以使用客户端证书。这对于单个请求很有效,但在HTTP关闭后,HAProxy似乎会丢失客户端证书 从haproxy.conf: frontend localhost_https bind *:8443 ssl crt /etc/private/server.pem.key_and_cert no-sslv3 ca-file /etc/certs/client_ca.pem verify required option forceclose

我设置了HAProxy 1.5.14以使用客户端证书。这对于单个请求很有效,但在HTTP关闭后,HAProxy似乎会丢失客户端证书

从haproxy.conf:

frontend localhost_https
    bind *:8443 ssl crt /etc/private/server.pem.key_and_cert no-sslv3 ca-file /etc/certs/client_ca.pem verify required
    option forceclose
    default_backend my_http
我正在使用forceclose可靠地触发HTTP关闭。调用curl现在显示第一个请求正确地进行了身份验证,但第二个请求没有

$ (curl --cert /tmp/client.pem https://localhost:8443/ https://localhost:8443/ -vk > /dev/null) 2>&1|grep HTTP
> GET / HTTP/1.1
< HTTP/1.1 200 OK
> GET / HTTP/1.1
< HTTP/1.0 401 Unauthorized
$(curl--cert/tmp/client.pemhttps://localhost:8443/ https://localhost:8443/ -vk>/dev/null)2>&1 | grep HTTP
>GET/HTTP/1.1
GET/HTTP/1.1
我错过什么了吗?为什么HAProxy不向客户端发送请求,以便在第二次请求时发送客户端证书