Skip to content

Commit f5ef471

Browse files
chore(deps): update rust crate rcgen to 0.14.0 (#1415)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent da440cc commit f5ef471

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

Cargo.lock

Lines changed: 15 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agent-control/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ prost = "0.14"
9696
httpmock = { version = "0.8.0-alpha.1", features = ["proxy"] }
9797
serial_test = "3.2.0"
9898
futures = "0.3.31"
99-
rcgen = { version = "0.13.2", features = ["crypto"] }
99+
rcgen = { version = "0.14.0", features = ["crypto"] }
100100
rustls-pemfile = { version = "2.2.0" }
101101
rstest = "0.25.0"
102102

agent-control/src/http/client.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,10 @@ pub(crate) mod tests {
295295

296296
fn valid_testing_cert() -> String {
297297
let subject_alt_names = vec!["localhost".to_string()];
298-
let rcgen::CertifiedKey { cert, key_pair: _ } =
299-
rcgen::generate_simple_self_signed(subject_alt_names).unwrap();
298+
let rcgen::CertifiedKey {
299+
cert,
300+
signing_key: _,
301+
} = rcgen::generate_simple_self_signed(subject_alt_names).unwrap();
300302
cert.pem()
301303
}
302304

agent-control/tests/common/opamp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use newrelic_agent_control::opamp::remote_config::validators::signature::public_
1010
use opamp_client::opamp;
1111
use opamp_client::operation::instance_uid::InstanceUid;
1212
use prost::Message;
13-
use rcgen::{CertificateParams, KeyPair, PKCS_ED25519};
13+
use rcgen::{CertificateParams, KeyPair, PKCS_ED25519, PublicKeyData};
1414
use std::hash::{DefaultHasher, Hash, Hasher};
1515
use std::path::PathBuf;
1616
use std::sync::Mutex;
@@ -108,7 +108,7 @@ impl ConfigResponse {
108108
vec![SignatureFields {
109109
signature: BASE64_STANDARD.encode(signature.as_ref()),
110110
signing_algorithm: ED25519,
111-
key_id: public_key_fingerprint(&key_pair.public_key_der()),
111+
key_id: public_key_fingerprint(&key_pair.subject_public_key_info()),
112112
}],
113113
)]);
114114

0 commit comments

Comments
 (0)