DtlsEngine.setPrivateKeyDer

void setPrivateKeyDer(const(ubyte)[] derKey, const(char)[] password = null)

Sets the private key (DER-encoded), matching DtlsContext.

Parameters

derKeyDER-encoded private key.
passwordPassword for encrypted keys, or null for unencrypted.