|
CryptoSys PKI
23.0.0
|
PEM file conversion routines. More...
Public Types | |
| enum class | Eol |
| End-of-line option. More... | |
Static Public Member Functions | |
| static int | FileFromBinFile (const std::string &fileToMake, const std::string &fileIn, const std::string &header="", int lineLen=0, Eol eol=Eol::Windows) |
| Create a PEM file from a binary file. More... | |
| static int | FileToBinFile (const std::string &fileToMake, const std::string &fileIn) |
| Convert the contents of a PEM file into a binary file. More... | |
PEM file conversion routines.
|
strong |
|
static |
Create a PEM file from a binary file.
| fileToMake | Name of PEM file to create |
| fileIn | Name of input binary file |
| header | Header to be used. Leave empty to omit the PEM header and footer. |
| lineLen | Maximum length of a line in the resulting PEM file [default = 64 characters] |
| eol | Line ending convention [default = Windows CR-LF endings] |
|
static |
Convert the contents of a PEM file into a binary file.
| fileToMake | Name of binary file to create. |
| fileIn | Name of input PEM file |