CryptoSys PKI Pro Manual

X509.SaveFileFromString Method

Create a new X.509 certificate file from a base64 string representation.

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 DER 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-----.

See Also

VB6/C equivalent: X509_SaveFileFromString

[Contents] [Index]

[PREV: X509.ReadStringFromFile Method...]   [Contents]   [Index]   
   [NEXT: X509.TextDump Method...]

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