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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Digital Certs

Status
Not open for further replies.

teamBadMonkey

Programmer
Joined
Feb 3, 2005
Messages
9
Location
US
I've looked around, but haven't found much info on using digital certificates in ASP. My situation - I need to develop an interface to a remote server. They've issued a digital cert (a .p12 file) and I've installed it.

I can put a URL into a browser on the production server - - and all behaves as expected. There's a popup for the digital cert, but after hitting ok, I get the data I'm looking for.

However - I need to automate this process.

set httpObj = CreateObject("Microsoft.XMLHTTP")
httpObj.open "GET", url, false
httpObj.send

This hangs until a timeout. I've seen stuff about using setOption(option, value) to set the path to the certificate, properly installing the cert on IIS...but I'm getting a bit lost at this point.

The machine runs Win2003 server. If anyone has experience in this area, I'd really appreciate some help. :)

Steve
 
I think I've got some more info to share.
what works:
logging onto production server as admin, using a browser to hit the target URL
what doesn't work:
using the ASP file from my home computer

My hunch is that since I can log onto the server as admin and hit the site via the web browser, but I can't get it to work when I use my ASP script via a remote computer (not admin?), then it very well could be a permissions thing.

Like I said, I'm charting new territory for myself, so I'm really only speculating right now. But since I installed the digital cert as an admin, does that restrict the permissions in a way that it won't work for an IIS general user?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top