Smart card authentication does not work in Eclipse, working in web client.
2 answers
In the install-directory \TeamConcert\jdk\jre\lib\security\java.security file, is your keystore.type set to Windows-MY?
==> keystore.type=Windows-MY
What version of java are you running? To verify, you can see details in your Eclipse client -> Help -> About Rational Team Concert -> Installation Details.
java.runtime.version=pwa6460sr13fp1-20130325_01 (SR13 FP1)
java.vendor=IBM Corporation
java.version=1.6.0
java.vm.info=JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr13-20130114_134867 (JIT enabled, AOT enabled)
Version 1.6 SR12+ and any v1.7 are required.
Comments
keystore.type was not set to Windows-MY. Changing it did not make a difference.
Comments
Hi,
Yes. In short, there is a flaw in how Java selects certificates when there are multiple certificates available with the same common name, it just chooses the first available one, without checking the extended usage attribute of that certificate. The only fix available is to gives the certificates aliases (or at least the one with Smart Card Logon set as the extended usage attribute), and select that one in the client.
The keystore should be set to jks and not to Windows-MY, that was a documentation error.
That was the solution we used.
Other possible solutions would be:
- auth-method is not set to CLIENT-CERT in web.xml's login-info.
- More than one login-info exists in web.xml.
- The certificate_filter in WAS is not configured correctly (eg sAMAccountName if AD).
- QoP settings had not been updated from None to Supported for client authentication.
Article 606 is a good start for the WAS parts.
Comments
Krzysztof Kaźmierczyk
Jan 28 '14, 6:34 a.m.Hi Mathias,
Let us start with following data:
1. show us print screen with error message
2. Please provide what error message (with stack trace) you see in <your-workspace>/.metadata/.log file on your client
3. Do you have any proxy or firewall between clients and server?
Mathias Hermansson
Jan 28 '14, 6:58 a.m.Mathias Hermansson
Feb 03 '14, 5:12 a.m.A small update.