X509 certificate not loading private key file on server

前端 未结 5 2091
忘了有多久
忘了有多久 2020-12-12 23:54

I\'m using the Google Analytics API and I followed this SO question to set up the OAuth: https://stackoverflow.com/a/13013265/1299363

Here is my OAuth code:

5条回答
  •  温柔的废话
    2020-12-13 00:52

    Also try specifying X509KeyStorageFlags

        var certificate = new X509Certificate2(KeyFilePath, KeyFilePassword, 
    X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | 
    X509KeyStorageFlags.Exportable);
    

提交回复
热议问题