NativeDtlsContext.setPrivateKey

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

Sets the private key from PEM-encoded data.

Replaces any previously set DER key (last set wins).

Parameters

pemDataPEM-encoded private key.
passwordOptional password for encrypted keys.