Red Hat Bugzilla – Bug 1299998
ssh client checks only the first certificate on a smartcard when the card has multiple certs
Last modified: 2016-11-29 08:08:29 EST
Section Number and Name:
Describe the issue:
ssh client checks only the first certificate on a smartcard when the card has multiple certs. If the first certificate is revoked and ocsp checking is enabled ssh to smartcard user fails eventhough the card has other certificates that are valid.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. A smartcard has a revoked certificate and a valid certificate generated by IPA
2. ssh-add -s <location of pkcs11 lib>
3. ssh -I
/usr/lib64/pkcs11/opensc-pkcs11.so -l ipasmartcarduser5 localhost
Output of step 2:
[rpattath@dhcp123-129 ~]$ ssh-add -s /usr/lib64/pkcs11/opensc-pkcs11.so
Enter passphrase for PKCS#11:
Could not add card: /usr/lib64/pkcs11/opensc-pkcs11.so
Output of step 3:
Prompts for user password and not smartcard pin
Step 2 should add the key of the valid cert on the card to ssh-agent
step 3 should prompt for smartcard pin (by detecting the vaild certificate on the smartcard)
Suggestions for improvement:
Sumit Bose let me know that this was not sshd-related. It was a bug in SSSD that is meanwhile fixed. For details, see comment #25 and #26 in BZ#1299994.
I'm closing this BZ.