Skip to content

Commit

Permalink
Merge pull request #258 from xmidt-org/feature/raw-cert-logging
Browse files Browse the repository at this point in the history
log the raw binary certificate in DER format
  • Loading branch information
johnabass authored Nov 20, 2024
2 parents bbf8c2b + 0ac3ec9 commit 5486f7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xhttp/xhttpserver/zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (c certificate) MarshalLogObject(enc zapcore.ObjectEncoder) error {
enc.AddString("serialNumber", "<none>")
}

enc.AddBinary("raw", c.Raw)
return nil
}

Expand Down

0 comments on commit 5486f7a

Please sign in to comment.