| Summary: | SSH does not read pkcs11-based private key. | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Inferno_geek <mishaad051> |
| Component: | Smartcard | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | normal | CC: | djm, jjelen, mishaad051 |
| Priority: | P5 | ||
| Version: | 8.4p1 | ||
| Hardware: | amd64 | ||
| OS: | Linux | ||
|
Description
Inferno_geek
2020-11-20 07:20:49 AEDT
Does "ssh-keygen -D /path/pkcs11.so" show the keys? The log says it has different amount of keys in OpenSSH 8.4. Can you get the list of objects with the following command? pkcs11-tool --module /usr/lib/librtpkcs11ecp.so -O (In reply to Damien Miller from comment #1) > Does "ssh-keygen -D /path/pkcs11.so" show the keys? ~/ssh8-2/bin/ssh-keygen -D ~/pkcs11-libs/librtpkcs11ecp.so | nc termbin.com 9999 https://termbin.com/g3fo ssh-keygen -D ~/pkcs11-libs/librtpkcs11ecp.so | nc termbin.com 9999 https://termbin.com/9avs (In reply to Jakub Jelen from comment #2) > The log says it has different amount of keys in OpenSSH 8.4. Can you > get the list of objects with the following command? > > pkcs11-tool --module /usr/lib/librtpkcs11ecp.so -O pkcs11-tool --module ~/pkcs11-libs/librtpkcs11ecp.so -O 2>&1 | nc termbin.com 9999 https://termbin.com/pvsa Are you using IdentitiesOnly in your ~/.ssh/config? In fixing bug #3141, ssh will no longer attempt all PKCS#11 keys when this option is active. (In reply to Damien Miller from comment #5) > Are you using IdentitiesOnly in your ~/.ssh/config? In fixing bug > #3141, ssh will no longer attempt all PKCS#11 keys when this option > is active. I removed the line and I was able to connect via key on token. Thank you. close bugs that were resolved in OpenSSH 8.5 release cycle |