502 Invalid Response when calling Google Api from Azure Website

前端 未结 2 2097
春和景丽
春和景丽 2021-02-14 04:56

When I call Google APIs from an Azure website, I get 502 - Web server received an invalid response while acting as a gateway or proxy server. The exact code wor

2条回答
  •  猫巷女王i
    2021-02-14 05:08

    I saw your question before, but didn't noticed the solution... I have it now also.. When generating the certificate add:

    var certificate = new X509Certificate2(p12Path, "notasecret", X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable);
    //(notice the X509KeyStorageFlags.MachineKeySet |)
    

提交回复
热议问题