Skip to content

Instantly share code, notes, and snippets.

View 1977er's full-sized avatar

Oliver Krüger 1977er

View GitHub Profile
@egidijus
egidijus / ssl-cert-info.sh
Created July 18, 2017 11:48
Shell script to check SSL certificate info like expiration date and subject. Taken from http://giantdorks.org/alain/shell-script-to-check-ssl-certificate-info-like-expiration-date-and-subject/
#!/bin/bash
usage()
{
cat <<EOF
Usage: $(basename $0) [options]
This shell script is a simple wrapper around the openssl binary. It uses
s_client to get certificate information from remote hosts, or x509 for local
certificate files. It can parse out some of the openssl output or just dump all