prehistoric-nail-50687
12/16/2020, 12:02 PMconst fs = require("fs");
const certBinary = fs.readFileSync("./mycomp.com.pfx");
const cert = new azure.appservice.Certificate("mycert", {
name: "mycert",
location: "switzerlandnorth",
resourceGroupName: "my-rg",
password: "xxxx",
pfxBlob: certBinary,
});
But I get this error:
azure:appservice:Certificate (mycert):
error: azure:appservice/certificate:Certificate resource 'mycert' has a problem: pfx_blob must be a single value, not a map
The certificate is fine, I can upload it without any issues via the azure portal by hand.const certBinary = fs.readFileSync("./mycomp.com.pfx").toString("base64");