I am trying to integrate into someone's internet service and they use Perl with x509 certificates. I am using VS 2003 w/ .Net 1.1. They issued me a certificate and everything works great, as long as I install the certificate, export the .cer file and use a windows form application to consume their service (this is not a web service).
As soon as I put it inside an ASP.NET application, it throws an exception stating that the connection was closed because SSL could not be established.
I created a class which uses the ICertificatePolicy interface and used ServicePointManager.CertificatePolicy = new CertPolicy() and this still does not work.
Being that it works in a windows form and not the ASP.NET application, this leads me to believe that the cert must be installed as the ASP.NET user. BTW, I forgot to mention that the ASP.NET account is a custom account and belongs to a domain.
I even went so far as to give the ASP.NET user domain admin rights, login as this user and manually install the cert. When I do this, again the Windows Form app works fine, but the ASP.NET app does not. Any ideas on how to fix this?
As soon as I put it inside an ASP.NET application, it throws an exception stating that the connection was closed because SSL could not be established.
I created a class which uses the ICertificatePolicy interface and used ServicePointManager.CertificatePolicy = new CertPolicy() and this still does not work.
Being that it works in a windows form and not the ASP.NET application, this leads me to believe that the cert must be installed as the ASP.NET user. BTW, I forgot to mention that the ASP.NET account is a custom account and belongs to a domain.
I even went so far as to give the ASP.NET user domain admin rights, login as this user and manually install the cert. When I do this, again the Windows Form app works fine, but the ASP.NET app does not. Any ideas on how to fix this?