NativeDtlsEngine.setPrivateKey

void setPrivateKey(string pemKey) @safe pure nothrow

Set the private key for authentication.

The key should be in PEM format. It must correspond to the public key in the first certificate of the chain.

Parameters

pemKeyThe PEM-encoded private key.