[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

Prompting for client certificates, ASP or AJAX solution needed...

Hi,

Im setting up an area on our website to accept client certificates. I have the setup working, have configured an OCSP module to check the validity of the certificate. The website is running on IIS6.

The issue im trying to get around at the moment is how to prompt for the certificate - currently the only method i know off is to configure IIS to either Accept or Require client certs - and again this works fine. In our website we have a registration page, which allows users to either manually enter their details, or hopefully click on a button that will prompt them to use their client certificate (at which point i will extract information from the certificate and pre-populate the registration form). The only way i can currently achieve this is to have a link from the registration page to page that requires a client certificate - however because its a link the user has then navigated away from the registration page. Ideally what id like to be able to do is to prompt for the certificate from the registration page and then extract the information. I thought this would be possible using either AJAX or MSXML (ASP) however it appears that call requires a client certificate to have been presented before the remote request is made.

Any clever ideas anyone?

Thhanks in advance
padev
0
partnershipdev
Asked:
partnershipdev
  • 2
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
Never tried this.

How about loading an image from a directory that needs certificate?
0
 
partnershipdevAuthor Commented:
Ho mplungian,

It could be a possiblity, but how would the registration page return values from the certificate - effectively the image in the secured directory would be the only object with access to the clients certificate (and of course that isnt possible either!)

Any thoughts?
padev
0
 
Michel PlungjanIT ExpertCommented:
It does not have to be an image.

<img name="regImage" src="blank.gif" width="1" height="1"
onLoad="if (this.src.indexOf('blank')==-1) getCertificateStuff()">

and have

<a href="#"
onClick="document.regImage.src='someCertificateDir/someServerprocess.asp';
return false">Whatever</a>

and have the someServerprocess.asp set a cookie and have getCertificateStuff() read that cookie
0
 
partnershipdevAuthor Commented:
mplungjan,

Great solution....with some modifications i got this solution to work perfectly.

Thanks for your suggestions.
padev
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now