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
119 stars 27 forks source link

Decide on default between `otp` and `plain` records #3

Closed voltone closed 6 years ago

voltone commented 6 years ago

For instance, the X509.Certificate module's primary type is the :Certificate record, but perhaps it would be better to default to :OTPCertificate. This needs to be decided and implemented across all modules where an OTP record variant exists.

voltone commented 6 years ago

X509.Certificate now returns :OTPCertificate records by default in v0.2.0, for better interworking with Erlang/OTP's :public_key module. For other records types the OTP variant is not used consistently in the :public_key APIs, or the record might be defined but not used at all. So no changes are needed for other modules at this time.