const config = {
method: "post",
baseURL: BASE_URL,
url: "/foobar",
data,
httpsAgent: new Agent({
ca: ca,
key: key,
passphrase: secret, // does this exist in deno?
cert: key,
secureProtocol: "TLSv1_2_method",
rejectUnauthorized: true,
requestCert: true,
}),
};
const config = {
method: "post",
baseURL: BASE_URL,
url: "/foobar",
data,
httpsAgent: new Agent({
ca: ca,
key: key,
passphrase: secret, // does this exist in deno?
cert: key,
secureProtocol: "TLSv1_2_method",
rejectUnauthorized: true,
requestCert: true,
}),
};