A library for using DANE for public key discovery.
Project description
A library for using DANE TLSA records for certificate discovery.
Quick Start
Installation
pip install dane-discovery
Load a certificate from DNS and print the PEM representation
from dane_discovery.dane import DANE
dns_name = "butterfly.air-quality-sensor._mdevice.acme-manufacturing.net"
tlsa_record = DANE.get_first_leaf_certificate(dns_name)
if not tlsa_record:
raise ValueError("No leaf certificate found for {}.".format(dns_name))
der_cert = DANE.certificate_association_to_der(tlsa_record["certificate_association"])
print(DANE.der_to_pem(der_cert))
Changelog
v0.1
New
Add certificate_association_to_der() and der_to_pem() for formatting certs from TLSA RRs. [Ash Wilson]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dane_discovery-0.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for dane_discovery-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51dd0219bdcccafdb8c25fbfb4c4a15ef56c36d4795dfefc4c565255ebd4a51b |
|
MD5 | 323e4e63c20bff9579effa127cbdeb1f |
|
BLAKE2b-256 | eab79a8eb798fe7ac014c6b8c32bda4c7a489fdcf44530a6753af02ac4e8f732 |