Skip to content

Commit

Permalink
update: add note on openssl s_client for https test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkalev committed Aug 27, 2024
1 parent ddbe088 commit 711ba0d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ A simple Docker image to create certificate requests for web servers
* The usual run is: `openssl s_client -connect <name>:443`
* To quit just after TLS connection establishment: `time echo "Q" | openssl s_client -connect <name>:443 2>1 >/dev/null`
* If we add the `-servername` argument then openssl also does SNI
### Test HTTPS web
* Use the `-quiet` and the `-crlf` options
* Example:
```
# openssl s_client -connect sso.asfa.gr:443 -quiet -crlf
GET /# HTTP/1.1
Host: sso.asfa.gr
```
### Testing SMTP (StartTLS)
* [Reference](https://halon.io/blog/how-to-test-smtp-servers-using-the-command-line)
* Connect to an SMTP server with StartTLS: `openssl s_client -quiet -connect relay.grnet.gr:587 -starttls smtp`
Expand Down

0 comments on commit 711ba0d

Please # to comment.