openssl s_client: add '-servername' (#8002)

This commit is contained in:
Julia Evans
2022-04-15 08:18:42 -04:00
committed by GitHub
parent 870c730191
commit b1c9bce207

View File

@@ -11,6 +11,10 @@
`openssl s_client -connect {{host}}:{{port}} </dev/null`
- Set the Server Name Indicator (SNI) when connecting to the SSL/TLS server:
`openssl s_client -connect {{host}}:{{port}} -servername {{hostname}}`
- Display the complete certificate chain of an HTTPS server:
`openssl s_client -connect {{host}}:443 -showcerts </dev/null`