x509ReadCertStringFromP7Chain
Read an X.509 certificate into a base64-encoded string from PKCS-7 "certs-only" data.
Syntax
[VBA]
Public Function x509ReadCertStringFromP7Chain ( _
szP7cFile As String, _
nIndex As Long, _
Optional nOptions As Long = 0 _
) As String
Parameters
- szP7cFile
- Filename of a PKCS-7 "certs-only" file, or a string containing its PEM textual representation.
- nIndex
- Index of certificate (1,2,...) in the chain to extract.
- nOptions
- For future use.
Return Value
String: String in continuous base64 format, or an empty string on error or if not found.
Remarks
Use X509_GetCertCountInP7Chain()
to find number of certificates in the chain.