collect_ssl_info Wiki
Script shows Information of SSL/TLS speaking servers an checks ciphers
Brought to you by:
ich2016
Welcome to your wiki!
This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
collect_ssl_info
The Script collect_ssl_info can provide in an easy way information from x509 certificates and the host which speaks SSL/TLS.
installation
reqired
just put it to a bin path and set executable rights to it.
manpage
COLLECT_SSL_INFO(1) System Manager's Manual COLLECT_SSL_INFO(1)
NAME
collect_ssl_info — a wrapper for openssl
DESCRIPTION
collect_ssl_info is an GAWK Script to collect information over x509 certs. The cert source can be a servers or files. The Script shows all details
of x509 certs and calculates hashes and ids for SHA, SHA256, SHA512, DANE and the pin
SYNOPSIS
collect_ssl_info [-pqv] [host:port] [host2:port] [-u host3:port] [-ul hostlist] [-ul hostlist2] [-c cipher] [-c cipher2] [-cl cipherlist]
[-cl cipherlist2] [-z certfile] [-z cerfile2] [-zl certlist] [-zl certlist2]
OPTIONS
-h --help
Show help and information about how to use collect_ssl_info
HOST SELECTION BY LIST
-ul file
file with hostlist in addr:port combination
CIPHER SELECTION BY LIST
-cl file
file with cipher list
CERTIFICAT SELECTION BY LIST
-zl file
file with cerfile list as filename
EXAMPLES
show the cert a host offers
collect_ssl_info www.host.de:443
collect_ssl_info -u www.host.de:443
EXAMPLES WITH HOSTLISTS
show only ciphers of the hosts from hostlistaa.txt the list contains the entries
www.host1.de:443
www.host2.de:143
EXAMPLES WITH CIPHERLISTS
show only this ciphers from the ciperlist of the hosts from cipherlistbb.txt the cipherlist contains the entries
RC4-MD5
AES128-SHA256
EXAMPLES WITH CERTLISTS
show the details of the certfiles named in the cerfilelistcc.txt the certlist contains the entries
www.host1.de.pem
www.host2.de.pem
PRESETTINGS
-i this option is assumed to use, if not use -q to switch it off
SEE ALSO
openssl(1), x509(1)
AUTHOR
collect_ssl_info an this manpage was written by siegfried, It is released under the GPLv3 (GNU General Public License version 3)
an advanced example collect_ssl_info -ul host.txt -pq -cl cipher.txt
First create two listefiles
The hostlist host.txt shows like this
192.xx.yy.zz:123
www.xyz.de:443
and the cipherlist chipher.txt shows like this
RC4-MD5
AES128-SHA256
now we can use both lists to do q quick chipher check on these hosts with the command
collect_ssl_info -ul host.txt -pq -cl cipher.txt
===== begin ciphertest 192.xx.yy.zz:123 ===============
RC4-MD5 failed
AES128-SHA256 success
===== end ciphertest 192.xx.yy.zz:123 ===============
===== begin ciphertest www.xyz.de:443 ===============
RC4-MD5 failed
AES128-SHA256 success
===== end ciphertest www.xyz.de:443 ===============