Validate SSL certificates with Python 3

Development | Programming languages
5.00 €
Money-Back Guarantee
# -*- encoding: utf-8 -*-
# pip install pyopenssl, idna

from OpenSSL import SSL
from cryptography import x509
from cryptography.x509.oid import NameOID
import idna

from socket import socket
from collections import namedtuple

HostInfo = namedtuple(field_names='cert hostname peername', typename='HostInfo')

    ('', 443),
    ('', 443),

def verify_cert(cert, hostname):
No attachments
You must log in or purchase one of our profile products to access.
All coments
This job has not been commented yet.

We use cookies to give you the best possible experience on our site. By continuing to use the site you agree to our use of cookies. Find out more Accept