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
pemData | PEM-encoded private key. |
password | Optional password for encrypted keys. |