Page MenuHomec4science

ssl_getcert.sh
No OneTemporary

File Metadata

Created
Mon, Nov 4, 03:38

ssl_getcert.sh

#!/bin/sh
#
# usage: ssl_getcert.sh remote.host.name [port]
#
REMHOST=$1
REMPORT=${2:-443}
echo |\
openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |\
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'

Event Timeline