How to send client certificate using HttpWebRequest and IISExpress for debugging
问题 I have some code for pulling a client certificate from the page request. This is the code in "MyPage.aspx". string someparam = this.Request.Params["someparam"]; if (!String.IsNullOrWhiteSpace(someparam) && this.Page.Request.ClientCertificate.IsPresent) { try { X509Certificate2 x509Cert2 = new X509Certificate2(this.Page.Request.ClientCertificate.Certificate); // // Code for verifying the x509Cert2 // } catch (Exception) { } } Now I want to test the code in Visual Studio in my local environment