Request.sslSetKeyFile

Set path to ssl key file.

file type can be SSLOptions.filetype.pem (default) or SSLOptions.filetype.der or SSLOptions.filetype.asn1.

if you configured only key file or only cert file, we will try to load counterpart from the same file.

struct Request
@property pure @safe nothrow @nogc
void
sslSetKeyFile

Examples

auto rq = Request();
rq.sslSetKeyFile("client01.key");
auto rs = rq.get("https://localhost:4443/");

Meta