Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90718173
ssl_getcert.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 4, 03:38
Size
209 B
Mime Type
text/x-shellscript
Expires
Wed, Nov 6, 03:38 (2 d)
Engine
blob
Format
Raw Data
Handle
22120072
Attached To
R2664 SHRINE MedCo Fork
ssl_getcert.sh
View Options
#!/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
Log In to Comment