Click or drag to resize

PemFileFromBinFile Method

Create a PEM file from a binary file with option for line endings.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int FileFromBinFile(
	string fileToMake,
	string fileIn,
	string header,
	int lineLen,
	bool unixEOL = false
)

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

Int32
Zero if successful; otherwise it returns an error code
See Also