Skip to content

Instantly share code, notes, and snippets.

@pmolchanov
Created February 8, 2016 04:07
Show Gist options
  • Select an option

  • Save pmolchanov/0c41d285ab1cd4b29d38 to your computer and use it in GitHub Desktop.

Select an option

Save pmolchanov/0c41d285ab1cd4b29d38 to your computer and use it in GitHub Desktop.

Revisions

  1. pmolchanov created this gist Feb 8, 2016.
    5 changes: 5 additions & 0 deletions sslcertinfo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/usr/bin/env bash

    echo -n "Enter the host name and press [ENTER]: "
    read host
    echo | openssl s_client -connect $host:443 2>/dev/null | openssl x509 -noout -text