Closed jvelilla closed 4 years ago
You need to specify the Host:
header for nginx to know where to route the request after connecting:
GET / HTTP/1.0
Host: client.badssl.com
(The empty line is needed to mark the end of the headers.)
Also I think the extra www.
in your -connect argument and wrong SNI arg will cause errors. Try:
openssl s_client -connect client.badssl.com:443 -servername client.badssl.com -showcerts -cert ./badssl.com-client.pem -CApath /etc/ssl/certs/ -tls1_2
I'm trying to test client certificate using https://client.badssl.com/ with the corresponding pem certificate, but when I do a GET / request I got a weird message saying something like this
trying to connect to an unknown subdomain, or your client does not support Server Name Indication
Here is the full command and output.