From 0ac3ec9931b4f92c5c81a436e0cbf65d0d6834c4 Mon Sep 17 00:00:00 2001 From: johnabass Date: Tue, 19 Nov 2024 19:25:12 -0800 Subject: [PATCH] log the raw binary certificate in DER format --- xhttp/xhttpserver/zap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/xhttp/xhttpserver/zap.go b/xhttp/xhttpserver/zap.go index 26ce46b..7cac1f7 100644 --- a/xhttp/xhttpserver/zap.go +++ b/xhttp/xhttpserver/zap.go @@ -49,6 +49,7 @@ func (c certificate) MarshalLogObject(enc zapcore.ObjectEncoder) error { enc.AddString("serialNumber", "") } + enc.AddBinary("raw", c.Raw) return nil }