Skip to content

Instantly share code, notes, and snippets.

View sverrehu's full-sized avatar

Sverre H. Huseby sverrehu

  • Oslo, NO
View GitHub Profile
@sverrehu
sverrehu / ssl_test.sh
Last active February 2, 2021 07:18 — forked from jaydansand/ssl_test.sh
Use OpenSSL to scan a host for available SSL/TLS protocols and cipher suites
#!/bin/bash
# Author: Jay Dansand, Technology Services, Lawrence University
# Date: 10/17/2014
# OpenSSL requires a port specification; default to 443.
SERVER="$1:443"
SERVER_HOST=$(echo "$SERVER" | cut -d ":" -f 1)
SERVER_PORT=$(echo "$SERVER" | cut -d ":" -f 2)
if [[ -z "$SERVER_HOST" || -z "$SERVER_PORT" ]]; then
echo "Usage: $0 host[:port] [ciphers [delay in ms]]"