v0.3.0
This release paves the way for some changes in the way PEM and DER
decoding works. Eventually there will be six functions in each module, as
implemented in X509.CSR
in this version. The generic functions in the X509
module will eventually be removed, with the exception of theX509.from_pem/2
function, which returns a (possibly filtered) list of entities found in the
PEM string.
In the next version, all from_der
and from_pem
functions (except for the
one in X509
) will return :ok
/ :error
tuples, so please update existing
code to use the new from_der!
and from_pem!
functions instead: their return
value on success will always be just the module's primary record type.
Breaking changes
- [X509.Certificate]
from_der/2
andfrom_pem/2
now returnnil
in case
of failure, for consistency with the current behaviour of other modules;
use the newfrom_der!/2
andfrom_pem!/2
to get the old behaviour of
raising an exception
Enhancements
- [X509.Certificate] Add
from_der!/2
andfrom_pem!/2
- [X509.CSR] Add
to_der/1
,to_pem/1
,from_der!/1
,from_der/1
,
from_pem!/1
andfrom_pem/1
- [X509.PrivateKey] Add
from_der!/2
andfrom_pem!/2
- [X509.PublicKey] Add
from_der!/2
andfrom_pem!/2
- Support Elixir v1.7 and ExDoc v0.19
Deprecations
The to_der
, to_pem
and from_der
functions in the X509 top-level module
have been deprecated. Please use their entity-specific functions in the
appropriate module instead. The deprecated functions will be removed in an
upcoming release, prior to v1.0.