mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 02:55:42 +00:00
Update cheatsheets
This commit is contained in:
25
openssl-s_client
Normal file
25
openssl-s_client
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# openssl s_client
|
||||
|
||||
> OpenSSL command to create TLS client connections.
|
||||
> More information: <https://www.openssl.org/docs/manmaster/man1/openssl-s_client.html>.
|
||||
|
||||
- Display the start and expiry dates for a domain's certificate:
|
||||
|
||||
`openssl s_client -connect {{host}}:{{port}} 2>/dev/null | openssl x509 -noout -dates`
|
||||
|
||||
- Display the certificate presented by an SSL/TLS server:
|
||||
|
||||
`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`
|
||||
Reference in New Issue
Block a user