Skip to content

Commit 4a0bed3

Browse files
committed
Fixed PEM decoding... 🤦
1 parent 9ea4c5e commit 4a0bed3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

certificates/certutils.go

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func LoadCertificatesFromFile(certificateFile *paths.Path) ([]*x509.Certificate,
7777
case ".pem":
7878
for {
7979
block, rest := pem.Decode(data)
80+
data = rest
8081
if block == nil && len(rest) > 0 {
8182
return nil, fmt.Errorf("invalid .pem data")
8283
}

0 commit comments

Comments
 (0)