Metadata-Version: 2.1
Name: easyx509deserialization
Version: 0.9.1
Summary: A front end to the cryptography package to easily extract information from an x509 certificate
Project-URL: Homepage, https://github.com/notthatadam/easyx509deserialization
Project-URL: Bug Tracker, https://github.com/notthatadam/easyx509deserialization/issues
Author-email: Adam Peterson <adampeterson@gmail.com>
License: License: GNU General Public License v3 (GPLv3) (GNU GENERAL PUBLIC LICENSE Version 3)
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown

This is a front end to the cryptography module x509 read functions.  It will allow you to quickly pull most information from an x509 certificate.  All of the read functions will take one parameter that can be either a base 64 string, (a .cer file) a binary object (a .der file) or a cryptography x509 certificate.

Usage:
from easyx509deserialization import read_certificate\
certificate_file = "duckduckgo-com.pem"\
f = open(certificate_file, "r")\
certificate_text = f.read()\
f.close()\
subject_name = read_certificate.get_subject_name(certificate_text)

Additionally, a p7b/p7c file can be passed in, and return a list of cryptography certificate objects.\
certificate_list = read_certificate.get_certs_from_pkcs7(pkcs7_file.p7b)