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&Issuertype 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 toCertificateParamsare now attached toIssuerinstead, removing a number of documented caveats.- The
RemoteKeyPairtrait is now calledSigningKeyand instead ofKeyPairbeing an enum that contains aRemotevariant, that variant has been removed in favor ofKeyPairimplementing the trait (see #328). To align with this change, theCertifiedKey::key_pairfield is now calledsigning_key, andCertifiedKeyis generic over the signing key type. - The
KeyPair::public_key_der()method has moved toPublicKeyData::subject_public_key_info()(see #328). - Output types like
Certificateno 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 viaCertificateParamsdirectly. - String types have been moved into a module (see #329).
What's Changed
- Revert impl AsRef issuer by @audunhalland in https://github.com/rustls/rcgen/pull/325
- Move string types to separate module by @est31 in https://github.com/rustls/rcgen/pull/329
- Unbundle params from output types by @djc in https://github.com/rustls/rcgen/pull/328
- Deduplicate Issuer construction by @djc in https://github.com/rustls/rcgen/pull/332
- Extract write_extensions() method, reducing rightward drift by @djc in https://github.com/rustls/rcgen/pull/333
- Update 0.12-to-0.13.md by @Alirexaa in https://github.com/rustls/rcgen/pull/338
- Distribute methods for parsing params elements from x509 by @djc in https://github.com/rustls/rcgen/pull/336
- Eagerly derive Clone, Copy, where possible by @lvkv in https://github.com/rustls/rcgen/pull/341
- Updated
.gitignoreto be more specific by @Rynibami in https://github.com/rustls/rcgen/pull/342 - Eagerly implemented
Debugtrait by @Rynibami in https://github.com/rustls/rcgen/pull/343 - Minor tweaks to Debug impls and other style improvements by @djc in https://github.com/rustls/rcgen/pull/348
- tests: only test against openssl on Unix by @djc in https://github.com/rustls/rcgen/pull/350
- Eagerly implemented
PartialEqandEqtraits by @Rynibami in https://github.com/rustls/rcgen/pull/344 - Use Issuer directly in the public API by @djc in https://github.com/rustls/rcgen/pull/356
- Tweak docstring for PublicKeyData::subject_public_key_info() by @djc in https://github.com/rustls/rcgen/pull/358