Skip to content

Commit

Permalink
Add serial member to CertificateIssued log struct
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-anderson committed Jun 4, 2024
1 parent 7ed477e commit 836d714
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rustica/src/logging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ pub struct CertificateIssued {
pub fingerprint: String,
/// The fingerprint of the signing certificate
pub signed_by: String,
/// The serial number of the signing certificate
pub serial: u64,
/// The configured authority name for the signer
pub authority: String,
/// Certificate type, either User or Host
Expand Down
1 change: 1 addition & 0 deletions rustica/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ impl Rustica for RusticaServer {
fingerprint,
signed_by: ca_cert.fingerprint().hash,
authority: authority.to_string(),
serial: authorization.serial,
certificate_type: req_cert_type.to_string(),
mtls_identities,
principals: authorization.principals,
Expand Down

0 comments on commit 836d714

Please sign in to comment.