Skip to content

Instantly share code, notes, and snippets.

@rerime
rerime / ssl-check.py
Created June 8, 2018 10:18 — forked from technocake/ssl-check.py
Python script to check on SSL certificates
# -*- encoding: utf-8 -*-
# requires a recent enough python with idna support in socket
# pyopenssl, cryptography and idna
from OpenSSL import SSL
from cryptography import x509
from cryptography.x509.oid import NameOID
import idna
from socket import socket