Windows Store App connect to HTTPS with an self-signed SSL certificate

后端 未结 1 1254
余生分开走
余生分开走 2021-02-10 01:26

I\'m having a Windows Store App (Metro App) which I want to connect a web service I built through HTTPS. And I am using a self-signed certificate for my web service. But when I

相关标签:
1条回答
  • 2021-02-10 02:02

    First, you should ideally be using Windows.Web.HttpClient. On that API, you can use httpClient.HttpBaseProtocolFilter.IgnorableServerCertificateErrors to set the cert errors that you're willing to accept. You can choose to ignore the Untrusted error, for example, but you should then manually check the thumbprint before actually sending any data.

    0 讨论(0)
提交回复
热议问题