diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:11:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:11:11 +0000 |
commit | ba28aa09cebfba17fd16de2af6fedf7ecc76eea5 (patch) | |
tree | 44e2ff1493776a06e95c359c53a1cabca5d8a8d4 /utils/resume.sh | |
parent | Initial commit. (diff) | |
download | testssl.sh-ba28aa09cebfba17fd16de2af6fedf7ecc76eea5.tar.xz testssl.sh-ba28aa09cebfba17fd16de2af6fedf7ecc76eea5.zip |
Adding upstream version 3.2~rc3+dfsg.upstream/3.2_rc3+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'utils/resume.sh')
-rwxr-xr-x | utils/resume.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/resume.sh b/utils/resume.sh new file mode 100755 index 0000000..3253af9 --- /dev/null +++ b/utils/resume.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# simple check for session resumption 1) by SID, 2) by tickets +# Author: Dirk Wetter, GPLv2 see https://testssl.sh/LICENSE.txt + + +echo +echo "####################### session ID ######################" +openssl s_client -connect $1:443 -servername $1 -bugs -no_ssl2 -no_ticket -sess_out /tmp/ssl_s </dev/null &>/dev/null + +echo "--------------------------------------------------------" +openssl s_client -connect $1:443 -servername $1 -bugs -no_ssl2 -no_ticket -sess_in /tmp/ssl_s </dev/null 2>/dev/null | grep -E "New|Reused|SSL handshake has read" +echo "--------------------------------------------------------" + +echo "####################### session ticket ######################" +openssl s_client -connect $1:443 -servername $1 -bugs -no_ssl2 -sess_out /tmp/ssl_s </dev/null &>/dev/null +echo "--------------------------------------------------------" +openssl s_client -connect $1:443 -servername $1 -bugs -no_ssl2 -sess_in /tmp/ssl_s </dev/null 2>/dev/null | grep -E "New|Reused|SSL handshake has read" + +echo + +# vim:ts=5:sw=5:expandtab |