Skip to content

Commit

Permalink
OM-206 - support pem, certificate, key files with LR or CRLF (#129)
Browse files Browse the repository at this point in the history
nullified all \r in read pem , cert, key files
  • Loading branch information
mphanias authored Aug 23, 2024
1 parent ba9d07b commit 4c9c17d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/commons/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ func readFromFile(filePath string) ([]byte, error) {
}

data := bytes.TrimSuffix(dataBytes, []byte("\n"))
data = bytes.ReplaceAll(data, []byte("\r"), []byte(""))

return data, nil
}
Expand Down

0 comments on commit 4c9c17d

Please sign in to comment.