A collection of Python tools for generating and querying SMIMEA DNS records for S/MIME certificates.
smimea_generate_record.py: Generates a BIND9-compatible SMIMEA DNS record from an email and its corresponding certificate.smimea_lookup.py: Queries and extracts an SMIMEA record from DNS, retrieves the certificate, and verifies it using OpenSSL.
- Python 3.x
opensslcommand-line tooldnspythonpackage (forsmimea_lookup.py)
To install dnspython, run:
pip install dnspythonpython smimea_generate_record.py <email> <certificate.pem>Example:
python smimea_generate_record.py user@example.com user_cert.pempython smimea_lookup.py <email>Example:
python smimea_lookup.py user@example.comThis project is licensed under the MIT License. See the LICENSE file for details.
Developed by Sebastian van de Meer.