Skip to content

Instantly share code, notes, and snippets.

View benchonaut's full-sized avatar
👻

Benjamin Freitag benchonaut

👻
  • ( yes )
  • World
  • 07:14 (UTC +02:00)
View GitHub Profile
@benchonaut
benchonaut / ssl-cert-info.sh
Created August 31, 2018 01:35
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