Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d0ca3221ce
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (10 sloc) 0.361 kb
#!/bin/bash
if [ -z "$1" ] # No argument passed?
then
echo "$0 www.example.com"
exit 1
fi
REMHOST=$1
REMPORT=${2:-443}
#openssl s_client -connect ${REMHOST}:${REMPORT} -showcerts | openssl x509 -noout -text
echo | openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' #> mycert.pem
Jump to Line
Something went wrong with that request. Please try again.