Git Access using SmartCard PKCS11 token

I am trying to configure the intellij Git Access using SmartCard token which support pkcs11 standards.currently we are using the git from Command line with pkcs11 token using the ssh-agent and ssh-add -s /usr/lib/opensc-pkcs11.so commands. for the global configuration, it can work from ~/.ssh/config or /etc/ssh/ssh_config and add the following line to config file

Host *
PKCS11Provider  /usr/lib/opensc-pkcs11.so
IdentitiesOnly  yes
IdentityFile    /tmp/null

Git is working simply by running the following command

[6/12/2015 3:11:19 AM] Sanaullah:  git clone git@10.0.1.224:ams.git
Cloning into 'ams'...
Enter PIN for 'SmartCard-HSM (UserPIN)':

is there a way we can configure the token in Intellij?

Regards,
Sanaullah

1 comment
Comment actions Permalink

I'm afraid this is not possible:
* the SSH library used in IntelliJ (trilead-ssh) probably doesn't support the SmartCard (although you may try);
* if the native SSH is used, it is not possible to pass the password from IntelliJ to the ssh agent because of https://youtrack.jetbrains.com/issue/IDEA-54554 (IntelliJ has to be a terminal in this case) <- we plan to fix this, but not very soon.

0

Please sign in to leave a comment.