Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAPI SmartCard is not recognized in Citrix / RDP Terminalserver Scenario #131

Open
WG-DL opened this issue Jun 28, 2024 · 9 comments
Open

Comments

@WG-DL
Copy link

WG-DL commented Jun 28, 2024

We are trying to use PuttyCAC together with a Yubikey Certificate (CAPI) on a Jumphost. However when entering the username associated with the Certificate the SmartCard prompt appears showing "Connect a smart card". The SmartCard is connected and works as normal in RDP Sessions.

How can this be fixed?

image

@NoMoreFood
Copy link
Owner

This is usually an environment configuration issue. Many, many people do this everyday. When you run certutil -scinfo from command line, do all the prompts perform as normal or do you see that same behavior?

@WG-DL
Copy link
Author

WG-DL commented Jun 28, 2024

When I execute certutil -scinfo from the same session I get all outputs just as I get them locally (CMD Output and Certlist at the end).
image

@NoMoreFood
Copy link
Owner

Are you able to select the CAPI certificate from the PuTTY CAPI selection dialog? Is it just signing?

@WG-DL
Copy link
Author

WG-DL commented Jul 1, 2024

Yes, I am able to select the CAPI Certificate from the CAPI selection dialog. Thats how I added it to the Pageant Key list. Certificate Purpose is Client Authentication and SmartCard Logon.

@NoMoreFood
Copy link
Owner

We use Citrix in this exact same way but don't seem to have this problem for some reason. Is there any way you could provide a way for me to reproduce it within your environment (e.g., test tenant)?

@fecorreiabr
Copy link

I'am facing the same issue in a Citrix environment. Putty won't show the signing application (Safenet here).
I noticed that CertPropSvc service is not running, would this be the responsible for the issue? Is this service mandatory for putty? I can use the smartcard in website applications normally.

@NoMoreFood
Copy link
Owner

@fecorreiabr Can you provide me the output of certutil -scinfo -silent and email it to me? Or post it here? I'm wondering if this is caused by the new Citrix VDA where they override the default Microsoft CSP to accelerate cryptographic operations. If so, I can probably adjust PuTTY CAC to make it work.

@NoMoreFood
Copy link
Owner

NoMoreFood commented Aug 28, 2024

Thank you for the email with certutil output. Can you confirm whether or not you have the issue when you directly RDPing to the exact same system (vice using Citrix) if that's an option? Also what version of the Citrix client and server software are in use? I just tried with 2402 LTSR and did not have any problems. Also make sure you're using a 64-bit version of PuTTY CAC if running on a 64-bit OS.

@fecorreiabr
Copy link

Thank you for the email with certutil output. Can you confirm whether or not you have the issue when you directly RDPing to the exact same system (vice using Citrix) if that's an option? Also what version of the Citrix client and server software are in use? I just tried with 2402 LTSR and did not have any problems. Also make sure you're using a 64-bit version of PuTTY CAC if running on a 64-bit OS.

We figured out the problem. Our Citrix provider was doing SSL/SSH inspection in network packets, similar to the behavior described here and here. After disabling it with an exception rule for our IP, the connection using the smartcard worked as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants