NativeDtlsContext.resolvedPrivateKeyPem

private string resolvedPrivateKeyPem()

Resolves the private key to PEM form.

A stored DER key is PEM-encoded; a stored PEM key is returned as-is.

Returns

The PEM private key, or null when none configured.

Throws

TlsException when an encrypted key (non-empty password)

was configured, as encrypted keys are not supported.