CryptoSys PKI Toolkit Manual

X509.SaveFileFromString Method

Creates a new X.509 certificate file from a base64 string.

Syntax

[C#]
public static int SaveFileFromString(
	string newCertFile,
	string certString,
	bool inPEMFormat
)
[VB.NET]
Public Shared Function SaveFileFromString ( _
	newCertFile As String, _
	certString As String, _
	inPEMFormat As Boolean _
) As Integer

Parameters

newCertFile
Name of new certificate file to be created.
certString
String containing certificate data in base64 format.
inPEMFormat
True to save in base64 PEM format, or false to save in binary BER format.

Return Value

Zero if successful or non-zero error code

Remarks

Any existing file of the same name will be overwritten without warning.

A PEM format file will start with -----BEGIN CERTIFICATE-----.

[Contents] [Index]


[HOME]   [NEXT: X509.TextDump Method...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.