ZebraP12InfoGetEncryptedPrivateKeyContent Method (String)
|
Get the encrypted private key content.
Namespace:
Zebra.Sdk.Certificate
Assembly:
SdkApi.Core (in SdkApi.Core.dll) Version: 2.15.2634
Syntax public string GetEncryptedPrivateKeyContent(
string passwordToEncryptKey
)
Public Function GetEncryptedPrivateKeyContent (
passwordToEncryptKey As String
) As String
public:
String^ GetEncryptedPrivateKeyContent(
String^ passwordToEncryptKey
)
Parameters
- passwordToEncryptKey
- Type: SystemString
The password used to encrypt the resulting private key.
Return Value
Type:
StringThe encrypted private key in PEM format.
Exceptions Exception | Condition |
---|
ZebraCertificateException | If 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