Skip to content

0.14.0

Compare
Choose a tag to compare
@djc djc released this 02 Jul 08:55
· 17 commits to main since this release
v0.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). The from_ca_cert_der() and from_ca_cert_pem() constructors that were previously attached to CertificateParams are now attached to Issuer instead, removing a number of documented caveats.
  • The RemoteKeyPair trait is now called SigningKey and instead of KeyPair being an enum that contains a Remote variant, that variant has been removed in favor of KeyPair implementing the trait (see #328). To align with this change, the CertifiedKey::key_pair field is now called signing_key, and CertifiedKey is generic over the signing key type.
  • The KeyPair::public_key_der() method has moved to PublicKeyData::subject_public_key_info() (see #328).
  • Output types like Certificate no longer contain their originating CertificateParams. Instead, signed_by() and self_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 via CertificateParams 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 and Eq 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