0.14.0
0.14.0 contains a number of potentially breaking API changes, though hopefully the rate of API change should slow down after this. Here is a summary of the most noticeable changes you might run into:
signed_by()
methods now take a reference to an&Issuer
type that contains both the issuer's relevant certificate parameters and the signing key (see #356). Thefrom_ca_cert_der()
andfrom_ca_cert_pem()
constructors that were previously attached toCertificateParams
are now attached toIssuer
instead, removing a number of documented caveats.- The
RemoteKeyPair
trait is now calledSigningKey
and instead ofKeyPair
being an enum that contains aRemote
variant, that variant has been removed in favor ofKeyPair
implementing the trait (see #328). To align with this change, theCertifiedKey::key_pair
field is now calledsigning_key
, andCertifiedKey
is generic over the signing key type. - The
KeyPair::public_key_der()
method has moved toPublicKeyData::subject_public_key_info()
(see #328). - Output types like
Certificate
no longer contain their originatingCertificateParams
. Instead,signed_by()
andself_signed()
now take&self
, allowing the caller to retain access to the input parameters (see #328). In order to make this possible,Certificate::key_identifier()
can now be accessed viaCertificateParams
directly. - String types have been moved into a module (see #329).
What's Changed
- Revert impl AsRef issuer by @audunhalland in #325
- Move string types to separate module by @est31 in #329
- Unbundle params from output types by @djc in #328
- Deduplicate Issuer construction by @djc in #332
- Extract write_extensions() method, reducing rightward drift by @djc in #333
- Update 0.12-to-0.13.md by @Alirexaa in #338
- Distribute methods for parsing params elements from x509 by @djc in #336
- Eagerly derive Clone, Copy, where possible by @lvkv in #341
- Updated
.gitignore
to be more specific by @Rynibami in #342 - Eagerly implemented
Debug
trait by @Rynibami in #343 - Minor tweaks to Debug impls and other style improvements by @djc in #348
- tests: only test against openssl on Unix by @djc in #350
- Eagerly implemented
PartialEq
andEq
traits by @Rynibami in #344 - Use Issuer directly in the public API by @djc in #356
- Tweak docstring for PublicKeyData::subject_public_key_info() by @djc in #358