Repository navigation
Smartcard pkcs11 support - refactor for code quality - #1073
thedavidwhiteside wants to merge 1 commit into
Conversation
6a04d5e to
538fdf4
Compare
|
As an update. I have a pull request to update the Ansible ssh connection module to use pkcs11: ansible/ansible#32829. When pkcs11 is supported in paramiko I plan to do the same for the paramiko connection module in Ansible. Since paramiko is the default on the mac, this makes life easier, so hoping this can make it in your next release. Thanks! |
|
@bitprophet , let me know if there is anything I can do to help get this into the next release of paramiko. |
|
Just checking back in. Let me know if you need any help.
|
|
@starboarder2001 Hey David is this ready to be merged? This is a very cool feature and just the thing I need for a project that I am currently working on. Let me know if you need any help and thank you for working on this! |
|
Most of the work was done back in 2018, but it should be ready to merge. |
|
When this feature will be available ? This will work with Hardware security modules ? |
|
@bitprophet Hey any thoughts/comments on this PR? Can we get this merged? |
|
This pull request appears to rename some variables and functions, and unwrap some awkward lines, and the result is cleaner and easier to read code, IMHO ... but it does not appear to add any functionality. I mention this because it sounds like some are expecting it to add some functionality. You can install and run this branch now, and it may help to have reports from multiple users that it works well ... but I do not expect this branch to do anything that current paramiko does not do (unless it fixes a bug which I did not spot among the style/naming changes). (Disclaimer: I am not the maintainer of this repo) |
|
Ah, I see - this pull request is against branch "final-827-int" which is a branch the maintainer was preparing for pkcs11 support a few years ago, based between paramiko-2.2 and paramiko-2.3, and apparently abandoned long ago. So the diff that appears in this pull request itself is not particularly useful. I don't really expect large major features from outside contributors to be merged in this repo (but I am sometimes surprised) ... but, if one were to persist in pushing this feature forward, the next step would be to prepare a new pull request against the current master branch which contains the full implementation (rather than this pull request against the long abandoned maintainers-feature-integration branch). |
|
Any plans to revisit this PR? This functionality would be incredibly useful. |
|
I created the original pull request, I can prepare a new pull request based on the current code base, should be able to fit it in in the next week or so. I will reference the new pull request in this conversation and close out this request when I am finished. |
|
Opened a new PR #1804 to continue with working on adding pkcs11 smartcard support. Closing this PR for now as its too stale. |
Follow up to #827. When I re-pushed to the original branch github forced the issue to close.
This adds pkcs11 support to enable using paramiko with smartcards. I have a forked version of Ansible that uses this feature and its working great.
I have tested on python 2.7 and python 3.6.2
Multithreading Example:
Basic Example: