X509GetCertCountInP7Chain Method |
Return number of certificates in a PKCS-7 "certs-only" certificate chain file.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int GetCertCountInP7Chain(
string inputFile
)
Public Shared Function GetCertCountInP7Chain (
inputFile As String
) As Integer
Parameters
- inputFile String
- Name of the PKCS-7 "certs-only" file, or a string containing its PEM textual representation.
Return Value
Int32Number of X.509 certificates found or a negative
error code.
See Also