CryptoSys PKI Pro Manual

Pem.FileFromBinFile Method

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

Syntax

[C#]
public static int FileFromBinFile(
	string fileToMake,
	string fileIn,
	string header,
	int lineLen,
	bool unixEOL
)
[VB.NET]
Public Shared Function FileFromBinFile ( _
	fileToMake As String, _
	fileIn As String, _
	header As String, _
	lineLen As Integer, _
	unixEOL As Boolean _
) As Integer

Parameters

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]
unixEOL
Set true for Unix/SSL LF line endings [optional, default = Windows CR-LF endings]

Return Value

Zero if successful; otherwise it returns an error code

See Also

VB6/C equivalent: PEM_FileFromBinFile

[Contents] [Index]

[PREV: Pbe.Scrypt Method (Int32, String, String, Int32, Int32, Int32)...]   [Contents]   [Index]   
   [NEXT: Pem.FileToBinFile Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.