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: 3.0.3271
Syntax
public static ZebraCertificateInfo ParseCertificate(
	Stream certificateStream,
	string alias,
	string password
)

Parameters

certificateStream  Stream
Data stream for the certificate file to be processed.
alias  String
The certificate to use within a multi-certificate (like PKCS12) file.
password  String
Used to unlock a protected certificate file.

Return Value

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