Skip to content

Commit 3dc413c

Browse files
chore(deps): bump rcgen from 0.13.2 to 0.14.5 (#3518)
Bumps [rcgen](https://github.com/rustls/rcgen) from 0.13.2 to 0.14.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rustls/rcgen/releases">rcgen's releases</a>.</em></p> <blockquote> <h2>0.14.5</h2> <p>Implement SigningKey for <code>&amp;impl SigningKey</code> to make <code>Issuer</code> more broadly useful.</p> <h2>What's Changed</h2> <ul> <li>Forward signing and public key data through references by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/380">rustls/rcgen#380</a></li> </ul> <h2>0.14.4</h2> <h2>What's Changed</h2> <ul> <li>Upgrade botan to 0.12 by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/377">rustls/rcgen#377</a></li> <li>Upgrade x509-parser to 0.18 by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/376">rustls/rcgen#376</a></li> <li>Add unstable support for ML-DSA algorithms by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/374">rustls/rcgen#374</a></li> </ul> <h2>0.14.3</h2> <h2>What's Changed</h2> <ul> <li>docs: fix typo in <code>PKCS_RSA_SHA384</code> doc comment by <a href="https://github.com/Bravo555"><code>@​Bravo555</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/367">rustls/rcgen#367</a></li> <li>Fix regression in key usage purpose encoding by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/369">rustls/rcgen#369</a></li> </ul> <h2>0.14.2</h2> <ul> <li>Add a <code>CertifiedIssuer</code> type (see <a href="https://redirect.github.com/rustls/rcgen/issues/363">#363</a>)</li> </ul> <h2>What's changed</h2> <ul> <li>Add a CertifiedIssuer by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/363">rustls/rcgen#363</a></li> <li>Provide a non-owning constructor for <code>Issuer</code> by <a href="https://github.com/p-avital"><code>@​p-avital</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/362">rustls/rcgen#362</a></li> <li>Allow access to the CertifiedIssuer's Certificate by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/364">rustls/rcgen#364</a></li> </ul> <h2>0.14.1</h2> <p>Declare 1.71 <code>rust-version</code> and check MSRV in CI.</p> <h2>What's Changed</h2> <ul> <li>Check MSRV in CI by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/361">rustls/rcgen#361</a></li> </ul> <p>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:</p> <ul> <li><code>signed_by()</code> methods now take a reference to an <code>&amp;Issuer</code> type that contains both the issuer's relevant certificate parameters and the signing key (see <a href="https://redirect.github.com/rustls/rcgen/issues/356">#356</a>). The <code>from_ca_cert_der()</code> and <code>from_ca_cert_pem()</code> constructors that were previously attached to <code>CertificateParams</code> are now attached to <code>Issuer</code> instead, removing a number of documented caveats.</li> <li>The <code>RemoteKeyPair</code> trait is now called <code>SigningKey</code> and instead of <code>KeyPair</code> being an enum that contains a <code>Remote</code> variant, that variant has been removed in favor of <code>KeyPair</code> implementing the trait (see <a href="https://redirect.github.com/rustls/rcgen/issues/328">#328</a>). To align with this change, the <code>CertifiedKey::key_pair</code> field is now called <code>signing_key</code>, and <code>CertifiedKey</code> is generic over the signing key type.</li> <li>The <code>KeyPair::public_key_der()</code> method has moved to <code>PublicKeyData::subject_public_key_info()</code> (see <a href="https://redirect.github.com/rustls/rcgen/issues/328">#328</a>).</li> <li>Output types like <code>Certificate</code> no longer contain their originating <code>CertificateParams</code>. Instead, <code>signed_by()</code> and <code>self_signed()</code> now take <code>&amp;self</code>, allowing the caller to retain access to the input parameters (see <a href="https://redirect.github.com/rustls/rcgen/issues/328">#328</a>). In order to make this possible, <code>Certificate::key_identifier()</code> can now be accessed via <code>CertificateParams</code> directly.</li> <li>String types have been moved into a module (see <a href="https://redirect.github.com/rustls/rcgen/issues/329">#329</a>).</li> </ul> <h2>What's Changed</h2> <ul> <li>Revert impl AsRef issuer by <a href="https://github.com/audunhalland"><code>@​audunhalland</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/325">rustls/rcgen#325</a></li> <li>Move string types to separate module by <a href="https://github.com/est31"><code>@​est31</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/329">rustls/rcgen#329</a></li> <li>Unbundle params from output types by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/328">rustls/rcgen#328</a></li> <li>Deduplicate Issuer construction by <a href="https://github.com/djc"><code>@​djc</code></a> in <a href="https://redirect.github.com/rustls/rcgen/pull/332">rustls/rcgen#332</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rustls/rcgen/commit/957a3d80d90bac59123b664808a31727b2a8e767"><code>957a3d8</code></a> Bump rcgen version to 0.14.5</li> <li><a href="https://github.com/rustls/rcgen/commit/befba1fba89431f08cc18d08be1d206a8d4cde66"><code>befba1f</code></a> Forward signing and public key data through references</li> <li><a href="https://github.com/rustls/rcgen/commit/9f7fbb653e505cf0f4a84d8eb25fc3827216a30f"><code>9f7fbb6</code></a> Bump rcgen to 0.14.4</li> <li><a href="https://github.com/rustls/rcgen/commit/12f96a85e4bb91f387e8e28bdb962162fde39b70"><code>12f96a8</code></a> Add unstable support for ML-DSA algorithms</li> <li><a href="https://github.com/rustls/rcgen/commit/28ff3b3d485949c88ba1be7adfb5cb03c5871f55"><code>28ff3b3</code></a> Move verification tests into a separate crate</li> <li><a href="https://github.com/rustls/rcgen/commit/cfe8b2e89b1a6af75522297afd8aa8d8c04be746"><code>cfe8b2e</code></a> Alphabetize features and dependencies</li> <li><a href="https://github.com/rustls/rcgen/commit/00883a930302fd9281383c9a229248c2595f6af5"><code>00883a9</code></a> Use more conventional order in Cargo.toml files</li> <li><a href="https://github.com/rustls/rcgen/commit/ef07b92a5f60bd217d65e98b8d7f33156c6c6c53"><code>ef07b92</code></a> Move all dependency specifications to the workspace</li> <li><a href="https://github.com/rustls/rcgen/commit/1bb5ba32861ba2a9d227eda2f58723f10f83e7e3"><code>1bb5ba3</code></a> Remove ring-specific documentation links</li> <li><a href="https://github.com/rustls/rcgen/commit/b4d001b73e0295523ecaa002376ec3fef47b230d"><code>b4d001b</code></a> cli: implement explicit FromStr impl for KeyPairAlgorithm</li> <li>Additional commits viewable in <a href="https://github.com/rustls/rcgen/compare/v0.13.2...v0.14.5">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rcgen&package-manager=cargo&previous-version=0.13.2&new-version=0.14.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dignifiedquire <me@dignifiedquire.com>
1 parent 75c5a4d commit 3dc413c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iroh-dns-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ lru = "0.16"
3333
n0-future = "0.1.2"
3434
n0-snafu = "0.2.2"
3535
pkarr = { version = "5", features = ["relays", "dht"], default-features = false }
36-
rcgen = "0.13"
36+
rcgen = "0.14"
3737
redb = "2.6.3"
3838
regex = "1.10.3"
3939
rustls = { version = "0.23", default-features = false, features = ["ring"] }

iroh-dns-server/src/http/tls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ impl<I: AsyncRead + AsyncWrite + Unpin + Send + 'static, S: Send + 'static> Acce
7575

7676
impl TlsAcceptor {
7777
async fn self_signed(domains: Vec<String>) -> Result<Self> {
78-
let rcgen::CertifiedKey { cert, key_pair } =
78+
let rcgen::CertifiedKey { cert, signing_key } =
7979
rcgen::generate_simple_self_signed(domains).e()?;
80-
let config = RustlsConfig::from_der(vec![cert.der().to_vec()], key_pair.serialize_der())
80+
let config = RustlsConfig::from_der(vec![cert.der().to_vec()], signing_key.serialize_der())
8181
.await
8282
.e()?;
8383
let acceptor = RustlsAcceptor::new(config);

0 commit comments

Comments
 (0)