Creates a PEM file from a binary file with extended options.
Public Declare Function PEM_FileFromBinFileEx Lib "diCrPKI.dll"
(ByVal strOutputFile As String, ByVal strFileIn As String, ByVal strHeader As String, ByVal nLineLen As Long, ByVal nOptions As Long) As Long
nRet = PEM_FileFromBinFileEx(strOutputFile, strFileIn, strHeader, nLineLen, nOptions)
long __stdcall PEM_FileFromBinFileEx(const char *szFileOut, const char *szFileIn, const char *szHeader, long nLineLen, long nOptions);
If successful, the return value is zero; otherwise it returns a nonzero error code.
Pem.FileFromBinFile Method Pem.FileFromBinFile Method
static Pem.from_binfile(outputfile, filein, header, linelen=64, eol=EOL.DEFAULT)
See the remarks for PEM_FileFromBinFile(). This extension was added to create PEM format files compatible with those created by Open SSL, which uses Unix line endings (a single LF character as opposed to the CR-LF pair used in Windows files).
PEM_FileFromBinFile PEM_FileToBinFile