Click or drag to resize

ZebraP12InfoGetEncryptedPrivateKeyContent(String) Method

Get the encrypted private key content.

Namespace: Zebra.Sdk.Certificate
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
public string GetEncryptedPrivateKeyContent(
	string passwordToEncryptKey
)

Parameters

passwordToEncryptKey  String
The password used to encrypt the resulting private key.

Return Value

String
The encrypted private key in PEM format.
Exceptions
ExceptionCondition
ZebraCertificateExceptionIf the provided alias does not exist, certificate password is incorrect, or private key content is corrupt.
Remarks
The returned key is encrypted and converted to PEM format. The resulting content can be stored to a printer for use with wireless security.Since no alias is provided, the first entry in the certificate file will be used. Note: Any printer using the generated private key must also be configured to use the password provided here to encrypt the private key.Send the following command to the printer to configure it to use a private key encryption password: ! U1 setvar "wlan.private_key_password" "value".
See Also