-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for binary DER format cert files
CHANGES - update README file to list additional supported cert file input format - `internal/textutils` package - add EOL constants - add "normalize" functions - `NormalizeNewlines` - `StripBlankLines` - `StripBlankAndNormalize` - `internal/certs` package - add new sentinel errors - `ErrUnsupportedFileFormat` - `ErrEmptyCertificateFile` - `ErrPEMParseFailureMalformedCertificate` - `ErrPEMParseFailureEmptyCertificateBlock` - add (24) new PEM block type contants - e.g., `PEMBlockTypeCRTBegin` - update `GetCertsFromFile` function to act as an entry point for loading certificates from a given file for all supported formats instead of being dedicated strictly to PEM formatted certificate files - continue to support importing (text) PEM encoded format - add support for importing binary DER encoded format - detect common unsupported PEM encoded file formats so that we can list the given file as being of a specific unsupported file format - refactor bulk of PEM handling logic originally contained in `GetCertsFromFile` to separate functions - `GetCertsFromPEMFile` - `ParsePEMCertificates` REFERENCES refs GH-862
- Loading branch information
Showing
3 changed files
with
282 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.