PemFileFromBinFile Method |
Create a PEM file from a binary file with option for line endings.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int FileFromBinFile(
string fileToMake,
string fileIn,
string header,
int lineLen,
bool unixEOL = false
)
Public Shared Function FileFromBinFile (
fileToMake As String,
fileIn As String,
header As String,
lineLen As Integer,
Optional unixEOL As Boolean = false
) As Integer
Parameters
- fileToMake String
- Name of PEM file to create
- fileIn String
- Name of input binary file
- header String
- Header to be used. Leave empty to omit the PEM header and footer.
- lineLen Int32
- Maximum length of a line in the resulting PEM file [default = 64 characters]
- unixEOL Boolean (Optional)
- Set true for Unix/SSL LF line endings [optional, default = Windows CR-LF endings]
Return Value
Int32Zero if successful; otherwise it returns an
error code
See Also