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 = "dns.name.having.a.tlsa.record"
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.2
New
Support generating TLSA records for matching type 1, 2. [Ash Wilson]
Closes #3
v0.1 (2020-08-04)
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.2.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for dane_discovery-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9ee1823cdbb0fb0bea0c2db504d4959ee820f12708f10616c6a1e626ab663c6 |
|
MD5 | 846a33c5f7f5334ce9ec0900f630d015 |
|
BLAKE2b-256 | dc1e3e237ebe23603b415dc90ee2f024d6c954e35bc89ddd7b764daa9c0b91c0 |