CryptoSys PKI Pro Manual

X509.ReadCertStringFromP7Chain Method

Read an X.509 certificate into a base64 string from PKCS-7 "certs-only" data.

Syntax

[C#]
public static string ReadCertStringFromP7Chain(
	string inputFile,
	int index
)
[VB.NET]
Public Shared Function ReadCertStringFromP7Chain ( _
	inputFile As String, _
	index As Integer _
) As String

Parameters

inputFile
filename of a PKCS-7 "certs-only" file, or a string containing its PEM textual representation.
index
specifying which certificate (1,2,...) in the chain to extract.

Return Value

String in continuous base64 format, or an empty string on error.

Remarks

[New in v12.2] To find the number of certificates in the chain, use GetCertCountInP7Chain. The old (deprecated) way to find the count of certificates was to set index to zero.

See Also

VB6/C equivalent: X509_ReadCertStringFromP7Chain

[Contents] [Index]

[PREV: X509.QueryCert Method...]   [Contents]   [Index]   
   [NEXT: X509.ReadCertStringFromPFX Method...]

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