Click or drag to resize

CertificateParserParseCertificate Method

Takes in a certificate file (P12, DER, PEM, etc) and processes it into a ZebraCertificateInfo object which contains the selected certificate, Certificate Authority certificate chain, and private key (if applicable).

Namespace:  Zebra.Sdk.Certificate
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1989
Syntax
public static ZebraCertificateInfo ParseCertificate(
	Stream certificateStream,
	string alias,
	string password
)

Parameters

certificateStream
Type: System.IOStream
Data stream for the certificate file to be processed.
alias
Type: SystemString
The certificate to use within a multi-certificate (like PKCS12) file.
password
Type: SystemString
Used to unlock a protected certificate file.

Return Value

Type: ZebraCertificateInfo
Instance containing all certificate and key information for the processed file.
Exceptions
ExceptionCondition
IOExceptionIf there is an issue reading the certificate file.
ZebraCertificateExceptionIf there is an issue processing the certificate file.
See Also