Skip to content

Instantly share code, notes, and snippets.

@MrSam
Created September 26, 2016 09:29
Show Gist options
  • Save MrSam/a939d2f353d811ef40bead45f29ad78e to your computer and use it in GitHub Desktop.
Save MrSam/a939d2f353d811ef40bead45f29ad78e to your computer and use it in GitHub Desktop.
Valid SSL cert
Snickers:~$ curl --insecure -v https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }'
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
* start date: Sep 14 08:20:40 2016 GMT
* expire date: Dec 7 08:19:00 2016 GMT
* issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
* SSL certificate verify ok.
* Connection #0 to host www.google.com left intact
Snickers:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment