Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7051699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:17:41+00:00 2026-05-28T03:17:41+00:00

We are creating a three-factor authentication for a website due to a legal requirements

  • 0

We are creating a three-factor authentication for a website due to a legal requirements in one Scandinavian country. The customer is using NetID branded browser plug-ins to do a PKCS #11 certificate authentication in the browser. The smartcards are supplied centrally by a partner on the customer.

This subject does not have much on-line resources or tutorials available. Would someone have any pointers to example implementations or tutorials how to do PKCS11 authentication in a web browser?

EDIT: Found about SSL client certificates

  • Looks like the authentication method is SSL Client Certificate

  • How do we manage relationship between users and their smartcards?

  • Do users deliver us their public keys and we authenticate against them?

  • Do we need to sign / provision each user individually using our own certicate?

  • Do all user smartcards contain a “generic” key which we test against a provider certificate?

http://www.garex.net/apache/

http://www.impetus.us/~rjmooney/projects/misc/clientcertauth.html

https://en.wikipedia.org/wiki/PKCS11

https://service.secmaker.com/examples/plugin.aspx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:17:42+00:00Added an answer on May 28, 2026 at 3:17 am

    Don’t do it with JavaScript. JavaScript cryptography has a number of problems, and I don’t think many browsers will let you access the PKCS#11 directly from JavaScript (running from within the page) easily.

    A number of browsers support PKCS#11 for HTTPS authentication, that is, using PKCS#11 for client-certificate authentication as part of the SSL/TLS connection (as part of HTTPS).

    Assuming you already have a PKCS#11 library available (let’s say OpenSC in /usr/lib/opensc.so), you can configure Firefox to use it:

    • Preferences -> Advanced -> Encryption, go in “Security Devices”
    • Click on ‘Load’
    • Choose a module name (for your own reference in the list) and point to the /usr/lib/opensc.so file (or whatever the appropriate PKCS#11 module is in your case).

    Then, when you connect to a website that requests a client certificate, the browser should offer you to choose a certificate from the PKCS#11-enabled device.

    The PKCS#11 configuration mechanism will vary from one browser to another, but it’s usually a matter of setting the path of the PKCS#11 module.

    As far as I know, Internet Explorer doesn’t use PKCS#11 (at least not without extra support), but should rely on MS CryptoAPI and InfoCards instead.

    On the server side, you will need to configure the requirement for client-certificate authentication. Nothing specific to PKCS#11 there.


    Following your edit, you should read about Certification Authorities (CAs) and Public Key Infrastructures (PKIs). You could deploy your own internal PKI, but it sounds like your requirements are to integrate with an existing PKI. This is an administrative problem mainly, so check with those making this requirement to see on which CA they want to rely (probably theirs).

    When using client-certificate authentication, the client will present its certificate (which contains the user’s public key and other attributes, including an identifier: the Subject Distinguished Name) and the SSL/TLS handshake will ensure that the client has the private key for this public key certificate. Then, the server verifies this certificate against CAs it trusts (that’s also an SSL setting on the server side).

    Once you’ve configured which CAs you want to trust, the mapping is usually done using the certificate’s Subject DN to an internal user name if needed. There is no hard rule for this, since it depends on your internal user naming scheme. This being said, it’s often sensible to use the full Subject DN as the user name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating solution and inside I have three projects: A WCF Service Library
I am creating an app that has three tabs on the main screen. Each
I am creating window c# desktop application I have three columns in my datagridview
Is there any way creating a photo gallery using Listview control ? Im playing
I am creating a WCF Data Service using the WCF Data Services Toolkit and
I'm creating spring.net proxy in code by using ProxyFactory object with ProxyTargetType to true
I am currently creating an MVC3 application using Ninject. I have two controllers which
Usually when I'm creating indexes on tables, I generally guess what the Fill Factor
I'm creating a 2D game using OpenGL and C++. I want it so that
hi there Iam creating a Paypal IPN and i have a pay now button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.