| Summary: | OpenSSH doesn't seem to work with my MuscleCard PKCS#11 library | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Daniel Benoy <daniel> |
| Component: | Smartcard | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED FIXED | ||
| Severity: | normal | CC: | djm, jmpoure, markus |
| Priority: | P2 | ||
| Version: | 5.4p1 | ||
| Hardware: | ix86 | ||
| OS: | Linux | ||
| Bug Depends on: | |||
| Bug Blocks: | 1708 | ||
| Attachments: | |||
|
Description
Daniel Benoy
2010-03-18 06:16:16 AEDT
FYI: I'm using libmusclepkcs11.so from muscleframework version 1.1.7 from here: https://alioth.debian.org/projects/muscleplugins/ what do the following commands print out: ssh-keygen -vvvD /usr/local/lib/libmusclepkcs11.so pkcs11-tool --module /usr/local/lib/libmusclepkcs11.so -O do you have the original output from ssh -vvv# /usr/local/lib/libmusclepkcs11.so:0:15 xxxxx Created attachment 1812 [details]
print out key ID for debugging
Could you please retry ssh -vI ... with this patch and attach
the new output? thanks!
Created attachment 1813 [details]
Debug command output
(In reply to comment #2) > what do the following commands print out: > > ssh-keygen -vvvD /usr/local/lib/libmusclepkcs11.so > pkcs11-tool --module /usr/local/lib/libmusclepkcs11.so -O attached. > do you have the original output from > ssh -vvv# /usr/local/lib/libmusclepkcs11.so:0:15 xxxxx 'fraid not :( Created attachment 1814 [details]
Debug command output 2
(In reply to comment #3) > Created an attachment (id=1812) [details] > print out key ID for debugging > > Could you please retry ssh -vI ... with this patch and attach > the new output? thanks! Attached. I believe this is the line you're looking for: pkcs11_rsa_private_encrypt/20: 24b1986496cb599e52da591ff46c98cd8dd74418 Muscle cards are highly experimental under GNU/Linux. It is recommended to use a traditional PKI card, compatible with OpenSC. This will work out of the box. You can try the FEITIAN PKI card for example, but there are other cards. Avoid Muscle cards. I have an aladdin etoken which I'm using in the meantime until this bug gets fixed. could you please try PKCS11SPY=/usr/local/lib/libmusclepkcs11.so export PKCS11SPY and then % ssh -vvvI /usr/local/lib/pkcs11-spy.so host pkcs11 spy should be part of opensc Created attachment 1829 [details]
Debug command output 3
Created attachment 1835 [details]
don't add attribut 'sign=true' when looking up the private rsa key
Could you please try this?
It worked! :D Thanks :) Created attachment 1836 [details]
try to find private key object w/CKA_SIGN first, retry w/o
Thanks. Could you please try this, too? this should both
work with the MUSCLE card and the E-Token.
thanks, -m
Created attachment 1837 [details]
really try to find private key object w/CKA_SIGN first, retry w/o
this one should work
(In reply to comment #15) > Created an attachment (id=1837) [details] > really try to find private key object w/CKA_SIGN first, retry w/o > > this one should work Yep! It worked with both my MUSCLE card and my Aladdin eToken Pro 32k via OpenSC. Markus has committed the fix in attachment #1837 [details]. It will be in OpenSSH 5.6.
Move resolved bugs to CLOSED after 5.7 release |