Click or drag to resize

ZebraP12InfoGetEncryptedPrivateKeyContent Method (String)

Get the encrypted private key content.

Namespace:  Zebra.Sdk.Certificate
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.13.898
Syntax
public string GetEncryptedPrivateKeyContent(
	string passwordToEncryptKey
)

Parameters

passwordToEncryptKey
Type: SystemString
The password used to encrypt the resulting private key.

Return Value

Type: 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