Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79201615
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
Sun, Aug 25, 06:15
Size
209 B
Mime Type
text/x-shellscript
Expires
Tue, Aug 27, 06:15 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20159307
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