From 1ec0cd6dc7f375e1946f7ef707306612fc4f913f Mon Sep 17 00:00:00 2001 From: MisterVVP <43521651+MisterVVP@users.noreply.github.com> Date: Sun, 28 Apr 2024 19:44:52 +0300 Subject: [PATCH] fix: support parsing of openssl specific cert formats (#142) --- prober/tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prober/tls.go b/prober/tls.go index e510d39..cca4053 100644 --- a/prober/tls.go +++ b/prober/tls.go @@ -57,7 +57,7 @@ func contains(certs []*x509.Certificate, cert *x509.Certificate) bool { func decodeCertificates(data []byte) ([]*x509.Certificate, error) { var certs []*x509.Certificate for block, rest := pem.Decode(data); block != nil; block, rest = pem.Decode(rest) { - if block.Type == "CERTIFICATE" { + if block.Type == "CERTIFICATE" || block.Type == "TRUSTED CERTIFICATE" { cert, err := x509.ParseCertificate(block.Bytes) if err != nil { return certs, err