voltone / x509

Elixir package for working with X.509 certificates, Certificate Signing Requests (CSRs), Certificate Revocation Lists (CRLs) and RSA/ECC key pairs
BSD 3-Clause "New" or "Revised" License
120 stars 28 forks source link

Get (decoded) extension value #16

Open voltone opened 6 years ago

voltone commented 6 years ago

Right now there are high-level APIs for creating extensions (Certificates, and soon CRLs and CRL entries), but when looking up extensions an :Extension record is returned. Complicating things, the extensions returned by the X509.Certificate module from the :OTPCertificate record have their values DER decoded, while CRL extensions are returned with DER binary values, even for the same extension type (e.g. AKI).

Need to define a unified API for working with extension values.