EJBCA Smart Card Log On Guide Windows
EJBCA Smart Card Log On Guide Windows
EJBCA Smart Card Log On Guide Windows
Table of contents
1 Configuring the Windows server.......................................................................................................2
1.1Prerequisites.................................................................................................................................2
1.2Creating a domain controllers.......................................................................................................2
1.3Install a DNS server...................................................................................................................10
1.4Setup DNS.................................................................................................................................10
1.5Generate a certificate request for each domain controller..........................................................11
1.6Install and publish certificate on each Domain Controller..........................................................11
1.7Import the CA certificate to "Enterprise NTAuth store"...........................................................12
1.8Adding a Windows XP client to the domain..............................................................................15
1.9Push CA certificate to all clients.................................................................................................15
1.9.1 Add the CA certificate to the Domain Security Policy........................................................15
1.9.2 Install certificate on every client machine............................................................................16
1.10Enroll an end user.....................................................................................................................16
1.10.1 Install Card Reader............................................................................................................16
1.10.2 Install CSP........................................................................................................................16
1.10.3 Put a MS SCL certificate on a smartcard..........................................................................16
1.10.4 Verify that CRL Distribution Point is reachable................................................................17
1.10.5 Verify Smart Card Logon.................................................................................................17
1.10.6 Adding another user..........................................................................................................17
2 Optional configuration.....................................................................................................................18
2.1Lock clients when smart cards are removed...............................................................................18
2.2Disable normal logon..................................................................................................................18
3. Click ”Next”
4. Select ”Domain Controller (Active Directory)” and click ”Next”
Sidnr / Page no
EJBCA and Windows smart card logon guide 4 (18)
Uppgjort / Author Sekretess / Confidentiality
Tomas Gustavsson/Johan Eklund/Joakim Bågnert OPEN
Godkänd / Authorized Datum Date Version
08/10/07 1.0
5. Click ”Next”
6. Click ”Next”
7. Click ”Next”
8. Click ”Next”
9. Select ”Domain controller for a new domain” and click ”Next”
Sidnr / Page no
EJBCA and Windows smart card logon guide 5 (18)
Uppgjort / Author Sekretess / Confidentiality
Tomas Gustavsson/Johan Eklund/Joakim Bågnert OPEN
Godkänd / Authorized Datum Date Version
08/10/07 1.0
15. Select ” I will correct DNS problems later” and click ”Next”
16. Select ”Permissions compatible only with Windows 2000 and Windows Server 2003” and click
”Next”
Sidnr / Page no
EJBCA and Windows smart card logon guide 9 (18)
Uppgjort / Author Sekretess / Confidentiality
Tomas Gustavsson/Johan Eklund/Joakim Bågnert OPEN
Godkänd / Authorized Datum Date Version
08/10/07 1.0
17. Enter administrator password. (”foo123” is used in this example) and click ”Next”
Both these are needed during the PKI set up and must be provided for every Domain Controller to
the person responsible for issuing the certificates. In this example we only use one DC.
3. Click OK
Sidnr / Page no
EJBCA and Windows smart card logon guide 12 (18)
Uppgjort / Author Sekretess / Confidentiality
Tomas Gustavsson/Johan Eklund/Joakim Bågnert OPEN
Godkänd / Authorized Datum Date Version
08/10/07 1.0
4. The certificate should be visible in the last step if everything went fine.
Troubleshoot: If there isn't a valid certificate request you will get the following error:
Solve this by creating a new certificate request, get a new certificate from the CA and repeat this
step from the top.
2. Select the CA certificate when prompted. This will take some time to process.
Sidnr / Page no
EJBCA and Windows smart card logon guide 13 (18)
Uppgjort / Author Sekretess / Confidentiality
Tomas Gustavsson/Johan Eklund/Joakim Bågnert OPEN
Godkänd / Authorized Datum Date Version
08/10/07 1.0
Troubleshoot: Download and install the “Windows Server 2003 Resource Kit Tools”. The
package is available from http://www.microsoft.com/downloads/details.aspx?
FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en. All default options can
be used during install.
1. Run “mmc”
2. Add the “Enterprise PKI” snap-in.
3. Right-click “Enterprise PKI” in the main window and select “Manage AD Containers”.
4. Remove the old certificate and retry the import from the top.
Sidnr / Page no
EJBCA and Windows smart card logon guide 15 (18)
Uppgjort / Author Sekretess / Confidentiality
Tomas Gustavsson/Johan Eklund/Joakim Bågnert OPEN
Godkänd / Authorized Datum Date Version
08/10/07 1.0
Start → Control Panel → System → Computer name → Change → Select “Domain”, Enter
“testing.primekey.se” → Login with a valid username and password for the domain → OK →
Reboot
Start → Administrative Tools → Domain Security Policy → Public Key Policies → Trusted Root
Certification Authorities → Right-click and choose “Import” → Next → Choose the CA certificate
in “File to Import” → Next → Next → Finish
Enroll user and put the certificate on a smartcard with the EJBCA Public Web Pages and NetID (or
another CSP that have the same functionality). Make sure that the LED on the card reader stops
flashing before you remove the card.
Troubleshoot: On a Windows Server 2003 client you can run “4. VerifySmartCardForLogon.vbs”
to verify that the certificate was installed. (Requires certutil.exe to be installed.)
Sidnr / Page no
EJBCA and Windows smart card logon guide 17 (18)
Uppgjort / Author Sekretess / Confidentiality
Tomas Gustavsson/Johan Eklund/Joakim Bågnert OPEN
Godkänd / Authorized Datum Date Version
08/10/07 1.0
Troubleshoot: If you get “The system could not log you on. The server authenticating you
reported an error (0xC00000BB)...” you can try to reboot the Domain Controller.
2. Create new end entity in EJBCA Administration GUI or have someone doing this for you.
3. Enrol through EJBCA Public Web Pages.
2 Optional configuration
2.1 Lock clients when smart cards are removed
Domain Security Policy Settings → Local policies → Security Options → Interactive Logon: Smart
card removal behavior → Lock Workstation