Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77592099
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
Thu, Aug 15, 08:57
Size
209 B
Mime Type
text/x-shellscript
Expires
Sat, Aug 17, 08:57 (2 d)
Engine
blob
Format
Raw Data
Handle
19892030
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