NativeDtlsEngine.setPrivateKey

void setPrivateKey(const(char)[] pemKey, const(char)[] password = null)

Set the private key for authentication from PEM data.

Parameters

pemKeyPEM-encoded private key.
passwordOptional password for encrypted keys (unsupported).

Throws

TlsException if a non-empty password is provided.