| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
… from PEM RFC 7468 permits LF, CR or CRLF line endings in PEM files. Current code first removes LF (\n) and then tries to remove CRLF (\r\n), so the CR (\n) characters are left in the file and key Base64 cannot be decoded. Because of this private key files generated/saved on Windows with CRLF line endings cannot be loaded into library.
|
LGTM 🚀 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Link to issue/feature request: #104
Description
RFC 7468 permits LF, CR or CRLF line endings in PEM files.
Current code first removes LF (\n) and then tries to remove CRLF (\r\n), so the CR (\n) characters are left in the file and key Base64 cannot be decoded. Because of this private key files generated/saved on Windows with CRLF line endings cannot be loaded into library.
The updated code handles CR and LF separately, so any combination of these characters will get removed from PEM data.