Skip to main content

Module pem

Module pem 

Source
Expand description

PEM blocks as the trust store writes them: header lines, then one block with 64-character base64 lines and LF line endings.

Structs§

Block
One PEM block and the header lines before it.

Functions§

decode
The first PEM block in text and the header lines before it; None when there is no complete block or its body is not base64.
encode
Encodes bytes as a PEM block labelled label, with 64-character lines and LF line endings, ending in a newline.