DtlsEngine.setPrivateKey

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

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

Takes a mutable buffer so callers can wipe the key material (e.g. with common.secureZero) after the engine has consumed it; an immutable string could never be zeroed.

Parameters

pemKeyPEM-encoded private key; the caller should overwrite it after this call.
passwordPassword for encrypted keys, or null for unencrypted.