Skip to content

Instantly share code, notes, and snippets.

View aapris's full-sized avatar

Aapo Rista aapris

  • Helsinki, Finland
View GitHub Profile
@gdamjan
gdamjan / ssl-check.py
Last active April 14, 2024 07:16
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