Skip to content

Commit

Permalink
Fixed PEM decoding... 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jul 13, 2023
1 parent 9ea4c5e commit 4a0bed3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions certificates/certutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func LoadCertificatesFromFile(certificateFile *paths.Path) ([]*x509.Certificate,
case ".pem":
for {
block, rest := pem.Decode(data)
data = rest
if block == nil && len(rest) > 0 {
return nil, fmt.Errorf("invalid .pem data")
}
Expand Down

0 comments on commit 4a0bed3

Please sign in to comment.