From 711ba0decf868ff5ed8cec0161607cff882f1e1f Mon Sep 17 00:00:00 2001 From: kkalev Date: Tue, 27 Aug 2024 15:16:09 +0300 Subject: [PATCH] update: add note on openssl s_client for https test --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ed3db01..07264db 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,15 @@ A simple Docker image to create certificate requests for web servers * The usual run is: `openssl s_client -connect :443` * To quit just after TLS connection establishment: `time echo "Q" | openssl s_client -connect :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 /login 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`