JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 15th, 2008, 03:50 PM
sebastiannielse sebastiannielse is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 82 sebastiannielse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 50 m 16 sec
Reputation Power: 10
Accessing root certificate store from JS?

How can I access the root certificate store in the user's browser with Javascript, to check if a specific root certificate is installed?

Or is it possible to query the root certificate store to see if the certificate is installed?

What Im doing, is a captive portal for a public WLAN access point, that will ask the user to install a SSL CA, and then check if its correctly installed before letting user access the internet.

Reply With Quote
  #2  
Old September 16th, 2008, 07:52 AM
jbot's Avatar
jbot jbot is offline
a rootin', tootin', shootin'
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Feb 2004
Location: location.href="hame"
Posts: 3,475 jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 11 h 55 m 52 sec
Reputation Power: 99
Can't be done (for plainly obvious security implications).
__________________
while ((code="javascript").substring(0,4)=="java") code!="java"

while ((gratitude="thanks in advance").substring(0,6)=="thanks") gratitude!="thanks"

Reply With Quote
  #3  
Old September 16th, 2008, 02:54 PM
sebastiannielse sebastiannielse is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 82 sebastiannielse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 50 m 16 sec
Reputation Power: 10
I understand if the client certificate store is protected since it contain sensitive information, but I don't understand whats for security implicitations by allowing anyone read-only access to the root certificate store. The rootstore dosen't contain any sensitive information.

But do you have any other idea on how I can check if a specific root certificate is correctly installed? Im thinking with providing the private key along with the root certificate (it don't matter if that key goes loose), and then doing a client certificate validation.

But the problem is if the end user select to install the root certificate in his client certificate store. Then the certificate will be "untrusted" for websites, but still it would pass client certificate validation.

Do you have any idea on how I can require install of certificate before user can access the internet?
With "require", I dont mean force. I know its impossible to force a user to install a certificate, it would have security cosequences.
With "require", I rather mean the user is still free to select if he wants to install the certificate or not, but if he select not to install the certificate, he not gonna get any internet from my WLAN Access point.

Reply With Quote
  #4  
Old September 17th, 2008, 03:27 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,871 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 16 h 30 m 42 sec
Reputation Power: 2569
What are you trying to do exactly?
__________________
[PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [ANSI C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

W3Fools - A W3Schools Intervention.

Reply With Quote
  #5  
Old September 17th, 2008, 01:50 PM
sebastiannielse sebastiannielse is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 82 sebastiannielse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 50 m 16 sec
Reputation Power: 10
What im trying to do, is to check if a CA certificate with thumbprint 8649044b4c1bc02e6ef256b894b81a177e15e7c4 or a certificate with the DN "HAVP Anti-Virus Scanner CA Root" is installed in the user's root certificate store.

I just want a true/false or a yes/no or a 1/0 value that says if the certificate with a specific thumbprint or DN is installed in the user's root (CA) certificate store.

Im think of making a script, that checks this, and then calculates a secret based on some values, that the end user dosen't know.
Then the script will check if the certificate is installed or not.
If the certificate is installed, the script will just run a window.location = "http://192.168.0.1/CertInstallSucess.cgi?secret=<secret calculated from script>";

If the certificate is not in the user's root store, it will do a:
window.location = "http://192.168.0.1/CertInstallInstructions.cgi";

Then Im gonna obfuscate the script heavly, to prevent user from being able to calculate the secret for himself.

The CertInstallSucess.cgi will be a CGI script, that checks if the "secret" value is correct, then it will tell the WLAN firewall to let that specific user to access the internet.
The CertInstallInstructions.cgi will provide user-friendly step-by-step instructions based on the user's User-Agent tag, that tells the user how to download and install the root certificate in his browser.

Reply With Quote
  #6  
Old January 9th, 2009, 04:11 AM
teeeo teeeo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2009
Posts: 1 teeeo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 9 sec
Reputation Power: 0
Hello!

Did you find solution for your problem? I have the same problem. I would also be satisfied with code in ASP. I just need to validate if client has trusted root certificate

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Accessing root certificate store from JS?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap