vletoux / OpenPGP-CSP

A CSP for the OpenPGP card - goal: add write support for certificate enrollment
39 stars 12 forks source link

Unicode error when asking for PIN #2

Closed techge closed 6 years ago

techge commented 6 years ago

Hi,

I like to track a little issue here:

Windows asking for user/admin PIN has unicode error (see screenshots attached)

screenshot_2

screenshot_3

vletoux commented 6 years ago

Except that the Windows does not include any placeholder here: image image

I do not understand how such character can be shown here.

techge commented 6 years ago

Hi Vincent, mh, that's strange indeed. Is it may connected to Windows version? I used Win2k8 in English...

vletoux commented 6 years ago

Can't reproduce. Can you still reproduce it? If not, I'll close the issue.

alex-nitrokey commented 6 years ago

The issue is still valid. I'll try on Win Server 2016 as soon I have time for it. May, but probably not related: the mentioned test machine with Win2008 R2 runs on Virtualbox.

PS: On Win10 I never got this afair

vletoux commented 6 years ago

a "certutil -scinfo" is enough to trigger the PIN dialog prompt if a certificate is present on the card. The dialogs are written by the Windows dialog editor and this is the first time in more than 10 years of programming that I see this. Would the presence of a third party program (used to "secure the PIN entry") explain this case ?

vletoux commented 6 years ago

Or are you sending the "pin prompt" text in ANSI instead of UNICODE ?

alex-nitrokey commented 6 years ago

I am sorry for the delay.

The system is a clean installation of win 2k8, so no special third party program. The funny signs are appearing without me interacting and are there every time the PIN prompt appears. It is really strange that the odd signs are different for user and admin pin, too.

I don't know how I could send ANSI text to the prompt anyway.

At least, I indeed only saw it on this win2k8 installation yet. So this shouldn't be much important. I still try to find the time to test it on win2016...

vletoux commented 6 years ago

Can you pack to me a VM to be able to test it ? My guest is that you have a 3rd party program.

vletoux commented 6 years ago

Fixed by 79ebdedaf65a126a9b64323d116f2a2692bd9b1d image