Skip to content

Commit

Permalink
update: get common name method
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Wobito <[email protected]>
  • Loading branch information
wobito committed May 16, 2024
1 parent 67016b9 commit b5e4ad4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions attestation-service/verifier/src/snp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ fn get_common_name(cert: &x509::X509) -> Result<String> {
bail!("No CN found");
};

if entries.count() != 0 {
bail!("No CN found");
}

Ok(e.data().as_utf8()?.to_string())
}

Expand Down

0 comments on commit b5e4ad4

Please sign in to comment.