This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]]" |