Skip to content

Commit

Permalink
log the raw binary certificate in DER format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Nov 20, 2024
1 parent bbf8c2b commit 0ac3ec9
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)

Check warning on line 52 in xhttp/xhttpserver/zap.go

View check run for this annotation

Codecov / codecov/patch

xhttp/xhttpserver/zap.go#L52

Added line #L52 was not covered by tests
return nil
}

Expand Down

0 comments on commit 0ac3ec9

Please sign in to comment.