diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6eb8a98e9..4df1fb2d1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -74,6 +74,7 @@ /rust/token_transfer/ @dfinity/growth /rust/token_transfer_from/ @dfinity/growth /rust/vetkd/ @dfinity/crypto-team +/rust/x509/ @dfinity/crypto-team /svelte/svelte-motoko-starter/ @dfinity/sdk /svelte/svelte-starter/ @dfinity/sdk diff --git a/rust/x509/src/x509_example_rust/tests/tests.rs b/rust/x509/src/x509_example_rust/tests/tests.rs index c54ebb175..fa8eb91c9 100644 --- a/rust/x509/src/x509_example_rust/tests/tests.rs +++ b/rust/x509/src/x509_example_rust/tests/tests.rs @@ -230,9 +230,13 @@ fn generate_child_certificate_request( let mut req_builder = X509Req::builder().expect("failed to create X509Req builder"); + req_builder + .set_version(0) + .expect("failed to set version in child certificate"); + req_builder .set_subject_name(&subject_name) - .expect("failed to set subject name"); + .expect("failed to set subject name in child certificate"); req_builder .set_pubkey(&key) .expect("failed to set public key in child certificate");