Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

x509 Certs without Web Service

Status
Not open for further replies.

Akusei

Programmer
Jul 15, 2003
90
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top