Update Rust crate rcgen to 0.14.5 #8705
Open
+7
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.12.1->0.14.5Release Notes
rustls/rcgen (rcgen)
v0.14.5: 0.14.5Compare Source
Implement SigningKey for
&impl SigningKeyto makeIssuermore broadly useful.What's Changed
v0.14.4: 0.14.4Compare Source
What's Changed
v0.14.3: 0.14.3Compare Source
What's Changed
PKCS_RSA_SHA384doc comment by @Bravo555 in #367v0.14.2: 0.14.2Compare Source
CertifiedIssuertype (see #363)What's changed
Issuerby @p-avital in #362v0.14.1: 0.14.1Compare Source
Declare 1.71
rust-versionand check MSRV in CI.What's Changed
v0.14.0: 0.14.0Compare Source
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.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.KeyPair::public_key_der()method has moved toPublicKeyData::subject_public_key_info()(see #328).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.What's Changed
.gitignoreto be more specific by @Rynibami in #342Debugtrait by @Rynibami in #343PartialEqandEqtraits by @Rynibami in #344v0.13.3: 0.13.3Compare Source
This release was yanked due to #324
What's Changed
Certificatecloneable (deriveClone) by @MadLittleMods in #319v0.13.2: 0.13.2Compare Source
Several improvements to the capabilities available when working with certificate signing requests.
What's Changed
algorithmfield onPublicKeyby @rickvanprim in #281aws-lc-rsby @daxpedda in #286lib.rsby @ghenry in #298v0.13.1: 0.13.1Compare Source
Fixed incorrect usage of the subject certificate's parameter's key identifier method when computing the key identifier of the issuer for the subject's authority key identifier (AKI) extension.
What's Changed
v0.13.0: 0.13.0Compare Source
Breaking changes
The API used to create/issue key pairs, certificates, certificate signing requests (CSRs), and certificate revocation lists (CRLs) has been restructured to emphasize consistency and avoid common errors with serialization.
For each concrete type (cert, CSR, CRL) the process is now the same:
fnon the parameters, providing subject key pair and issuer information and as appropriate.fns on the finalized type, obtaining DER or PEM.For more information, see [rcgen/docs/0.12-to-0.13.md].
Throughout the API DER inputs are now represented using types from the Rustls
rustls-pki-typescrate, e.g.PrivateKeyDer,CertificateDer,CertificateSigningRequestDer. Contributed by Tudyx.String types used in
SanTypeandDnValueenums for non-UTF8 string types have been replaced with more specific types that prevent representation of illegal values. E.g.Ia5String,BmpString,PrintableString,TeletexString, andUniversalString. Contributed by Tudyx.Method names starting with
get_have been renamed to match Rust convention:CertificateRevocationList::get_params()->params()Certificate::get_params()->params()Certificate::get_key_identifier()->Certificate::key_identifier()Certificate::get_times()->Certificate::times()Added
RSA key generation support has been added. This support requires using the
aws-lc-rsfeature. By default usingKeyPair::generate_for()with an RSASignatureAlgorithmwill generate an RSA 2048 keypair. SeeKeyPair::generate_rsa_for()for support for RSA 2048, 3072 and 4096 key sizes.Support for ECDSA P521 signatures and key generation has been added when using the
aws-lc-rsfeature. Contributed by Alvenix.Support for loading private keys that may be PKCS8, PKCS1, or SEC1 has been added when using the
aws-lc-rsfeature. Without this feature private keys must be PKCS8. SeeKeyPair::from_pem_and_sign_algo()andKeyPair::from_der_and_sign_algo()for more information. Contributed by Alvenix.Support has been added for Subject Alternative Name (SAN) names of type
OtherName. Contributed by Tudyx.Support has been added for specifying custom "other" OIDs in extended key usage. Contributed by Tudyx.
Support has been added for building rcgen without cryptography by omitting the new (default-enabled)
cryptofeature flag. Contributed by corrideat.Support for using
aws-lc-rsinfipsmode can now be activated by using thefipsfeature in combination with theaws-lc-rsfeature. Contributed by BiagioFesta.A small command-line tool for certificate generation (
rustls-cert-gen) was added. Contributed by tbro.What's Changed
pemcrate feature by @daxpedda in #204rustls-cert-genwith basic parameters. by @tbro in #190Configuration
📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.