Page MenuHome GnuPG
Feed Advanced Search

Jan 21 2019

jegrp created T4333: Job objects on Windows interfere with automatic start of gpg-agent.
Jan 21 2019, 6:58 PM · patch, Windows, gpgagent, Bug Report

Dec 19 2018

mjb added a comment to T4273: agent: Request insertion of smartcard when no card present.

Yes, it's running. I have a scheduled task that spawns a vbscript to ensure that gpg-agent is started on login, and restarts it on insertion of a card (specifically for two reasons: windows ssh clients don't typically start agents automatically, and windows can cause gpg-agent to get a but upset after a card is removed and re-inserted. Edit: although, I think that latter reason might be resolved now... I haven't investigated deeply. more info here and here).

Dec 19 2018, 2:34 AM · Feature Request, Documentation, gpgagent
gniibe added a comment to T4273: agent: Request insertion of smartcard when no card present.

Thanks for your information.
Hum, you are using gpg-agent for SSH access.

Dec 19 2018, 2:19 AM · Feature Request, Documentation, gpgagent

Dec 18 2018

mjb added a comment to T4273: agent: Request insertion of smartcard when no card present.

When no card is inserted, usage of an ssh client simply fails to request insertion of the card for the stub keys present in ~/.gnupg/.

Dec 18 2018, 6:19 AM · Feature Request, Documentation, gpgagent

Dec 17 2018

shandra added a member for Windows: Angel.
Dec 17 2018, 10:12 AM
shandra added a watcher for Windows: shandra.
Dec 17 2018, 10:09 AM
gniibe edited projects for T4273: agent: Request insertion of smartcard when no card present, added: Info Needed; removed Feature Request.

Please let us know the version of GnuPG, the output of gpg --card-status when inserted, and how gpg is not working well, etc.

Dec 17 2018, 9:22 AM · Feature Request, Documentation, gpgagent
gniibe claimed T4273: agent: Request insertion of smartcard when no card present.

How scdaemon responds when there is no card available?

Dec 17 2018, 9:09 AM · Feature Request, Documentation, gpgagent

Dec 5 2018

aheinecke changed the status of T4268: Provide a method to build a simple WKD server filestructure on Windows from Open to Testing.

Sounds good! I give it to me for testing / documenting this.

Dec 5 2018, 12:00 PM · wkd, Windows

Dec 4 2018

werner added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

With master we can now do:

Dec 4 2018, 4:36 PM · wkd, Windows

Dec 3 2018

werner added a project to T4273: agent: Request insertion of smartcard when no card present: Windows.
Dec 3 2018, 3:04 PM · Feature Request, Documentation, gpgagent

Nov 28 2018

aheinecke added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

@werner Be my guest.

Nov 28 2018, 9:22 AM · wkd, Windows

Nov 27 2018

werner added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

Why not using PowerShell? Because --with-colons does not output the required hash? But that can't be the reason because Python has the very same problem. Using Python for scripts is anyway a bit of overkill.

Nov 27 2018, 5:25 PM · wkd, Windows
bernhard added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

Precondition: A list of pubkeys, as keyring or as keyring file with list of fingerprints.
Goal: a static file structure that can be uploaded on my webserver.
Platform: Windows, a better solution does require less additional dependencies apart from Gpg4win.

Nov 27 2018, 8:28 AM · wkd, Windows

Nov 26 2018

werner added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.
gpg-wks-server --install-key fingerprint
Nov 26 2018, 8:35 PM · wkd, Windows
bernhard added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

... that would be useful in many ways. I'd say we should support anyone who wants to use pythong-gnupg on windows.

Nov 26 2018, 11:41 AM · wkd, Windows
bernhard added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

@werner it is like @aheinecke writes:

Nov 26 2018, 11:40 AM · wkd, Windows
aheinecke added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

As I see it Bernhard is just asking for the flat strucuture so basically some export script that creates the needed files on windows.

Nov 26 2018, 11:32 AM · wkd, Windows
werner triaged T4268: Provide a method to build a simple WKD server filestructure on Windows as Low priority.

If they really want to do that for Windows, they can use some database approach like Protonmail does it. This does not require any file structure.

Nov 26 2018, 11:26 AM · wkd, Windows
werner added a comment to T4268: Provide a method to build a simple WKD server filestructure on Windows.

Sorry, we won't implement a server for WIndows. No sane provider uses Windows for a large mail setup.

Nov 26 2018, 11:25 AM · wkd, Windows
bernhard created T4268: Provide a method to build a simple WKD server filestructure on Windows.
Nov 26 2018, 10:50 AM · wkd, Windows

Nov 9 2018

aheinecke closed T3378: gpg-agent.exe hanging after left to idle for a while as Resolved.

Marking this as resolved as it was forgotten in the testing state.

Nov 9 2018, 1:42 PM · Windows, libassuan, gpgagent, Bug Report

Oct 26 2018

werner closed T3904: Clarify suggestion for diskperf as Wontfix.
Oct 26 2018, 12:45 PM · Windows, libgcrypt

Oct 22 2018

madhon added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

I'm also seeing the same behaviour on a freshly installed Windows 10 1809 with Gpg4win v3.1.4. Have to kill dirmngr from task manager to be able to get into Kleopatra.

Oct 22 2018, 10:27 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report

Oct 8 2018

p1993r added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

Hi, Has anyone found a reason why that happens. I run into the same behavior on my Windows 10 1803 computer. I have Gpg4win version 3.1.3 freshly installed and dirmngr hangs. Thanks and best regards, Peter

Oct 8 2018, 9:39 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report

Aug 24 2018

werner lowered the priority of T3957: GPGME: mkdefsinc segfaults on windows from Normal to Low.

I need to know which of the processes segv: mkdefsinc, cat or the subshell. And a backtrace would also be very helpful.

Aug 24 2018, 5:52 PM · unreproducible, toolchain, Documentation, Windows, gpgme

Aug 6 2018

morgoth added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

Was anyone successful in debugging dirmngr? I'm having the same issue. The dirmngr process gets stuck, no output at all, and this causes Kleopatra to get stuck waiting for it. I can only run Kleopatra after I have killed the dirmngr process. If I understand correctly I still need this process for network-related functionality, so I would need to fix it if I want to use all functions.

Aug 6 2018, 7:21 PM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report

Jul 5 2018

aheinecke closed T4054: libgpg-error, w32: logging crashes on unmatched %s on window as Resolved.

IMO this can be closed. At least the problem for which I intended this ticket is fixed.

Jul 5 2018, 8:56 AM · Windows, gpgrt

Jul 4 2018

werner added a comment to T4054: libgpg-error, w32: logging crashes on unmatched %s on window.

Printing "(null)" is just coincidence because NULL is stored at the respective stack address on one platform.

Jul 4 2018, 8:04 PM · Windows, gpgrt
aheinecke reassigned T4054: libgpg-error, w32: logging crashes on unmatched %s on window from aheinecke to werner.

Well I'm pretty sure the reason is that valuetable_buffer is not inialized in _gpgrt_estream_format. But the resulting behavior confused me. It would not crash. But it would also not print "gpg: Entschlüsselung als fehlgeschlagen angesehen: (null)" It would just print nothing instead of that string.

Jul 4 2018, 6:26 PM · Windows, gpgrt
aheinecke added a revision to T4054: libgpg-error, w32: logging crashes on unmatched %s on window: D465: Fix uninitialized access to valutable_buffer.
Jul 4 2018, 6:24 PM · Windows, gpgrt
aheinecke renamed T4054: libgpg-error, w32: logging crashes on unmatched %s on window from libgpg-error: w32 gettext crashes on unmatched %s in translation to libgpg-error, w32: logging crashes on unmatched %s on window.
Jul 4 2018, 6:06 PM · Windows, gpgrt

Jun 21 2018

werner added a comment to T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Not really. off_t is a real portability problem and this why we moved that problem out of the GPGME ABI to the application. Thus the application needs to care about mapping gpgme_off_t to whatever off_t it uses. Without that we can't provide a stable _and_ toolchain independent ABI.

Jun 21 2018, 9:28 AM · Windows, C++, gpgme, Bug Report

Jun 20 2018

aheinecke added a comment to T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Thank you for pointing this out.

Jun 20 2018, 9:07 PM · Windows, C++, gpgme, Bug Report
wojnilowicz added a comment to T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Following patch fixes the issue.

Jun 20 2018, 7:08 PM · Windows, C++, gpgme, Bug Report

Jun 12 2018

RAmbidge added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

@tinkerwolf This is weird... I've reinstalled my PC from scratch with an initial account set as local, and was able to set up GPG4Win perfectly fine for the first time on my PC (as I did in the VM). So, set up a VM with an initial account set up from an online account. GPG4Win started up fine... I am now really confused!! Somewhere within the getting set up with an online account, something has to be happening that interferes with dirmngr..
Will investigate further.

Jun 12 2018, 11:24 PM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report
tinkerwolf added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

@RAmbidge are you able to further test this by using a VM with a MS account? I don't have the means right now, or I'd do it myself.

Jun 12 2018, 4:18 PM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report
tinkerwolf added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

That actually makes sense, because it works fine on my laptop, where it's been a local account from the start, but it's broken on my desktop where it was originally a MS account, but is now local.

Jun 12 2018, 12:44 PM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report

Jun 11 2018

RAmbidge added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

I'm having the same issue. I read somewhere that it's likely caused by using an online Windows account to login with. So I converted to local log in. Issue persists. As a test, I've just set up a VM with a local account set up at install, and GPG4Win works perfectly fine. So I'm guessing that there may be an issue which stays in the files system caused by online account users. I'm not a programmer and have no idea how or where to look to see what's causing it and how to fix it though.

Jun 11 2018, 1:04 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report

May 29 2018

wojnilowicz added a comment to T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Maybe the off_t mess comes from following line

May 29 2018, 3:05 PM · Windows, C++, gpgme, Bug Report
aheinecke changed the status of T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW from Open to Testing.

The gpgme c api already had a convenience function gpgme_data_rewind to do data.seek (0, SEEK_SET); As this is by far the most common seek operation. KMymoney also only uses such seeks.

May 29 2018, 9:29 AM · Windows, C++, gpgme, Bug Report

May 28 2018

wojnilowicz added a comment to T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Uhm, yeah I would be willing to help. But I tried to understand it and don't see the problem.

So what the error tells us is that "off_t" is defined as long in the declaration but as something else in the definition.

But how can that be? data.cpp includes the data.h header so they both should have the same definition of off_t.

The only thing I could imagine is that something which is included in the cpp but not in the header undef's off_t and defines it to something else.

Or more likely that the archive was compiled with a different definition of off_t then what is included in the headers when kmymoney is built.

Are you using the same mingw version as the buildchain which compiles the gpgme binary?

May 28 2018, 6:52 PM · Windows, C++, gpgme, Bug Report
aheinecke claimed T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Uhm, yeah I would be willing to help. But I tried to understand it and don't see the problem.

May 28 2018, 4:43 PM · Windows, C++, gpgme, Bug Report
werner triaged T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW as Normal priority.

You are not cross-compiling. This is not suggested and I don't have the environment to replicate this. Maybe @aheinecke can help.

May 28 2018, 2:53 PM · Windows, C++, gpgme, Bug Report

May 16 2018

ccharabaruk added a comment to T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.

@werner I was hoping to make a modified gpg-agent build that would let me walk through what's going on after the nonce is sent but it looks like the gpg4win process only takes in a package of pre-built gpg binaries which rules that out. As far as I can figure out, after the nonce is read and accepted, libassuan creates a stream object out of the socket and then finding nothing in the stream terminates the ssh handler. We send the actual client request immediately after the nonce but in a separate call to send() so I now wonder if by not having anything read in at the same time as the nonce gpg-agent or libassuan thinks that it's a 0-length stream.

May 16 2018, 6:54 PM · Not A Bug, workaround, gnupg24, Windows, ssh

May 3 2018

aheinecke created T3957: GPGME: mkdefsinc segfaults on windows.
May 3 2018, 2:02 PM · unreproducible, toolchain, Documentation, Windows, gpgme

May 2 2018

aheinecke added a parent task for T2110: Gpgsm 2.1 external key search gives duplicated results: T3899: Gpg4win 3.1.1.
May 2 2018, 1:41 PM · gnupg (gpg22), S/MIME, Bug Report, gpg4win, Windows, Windows 32
aheinecke closed T2110: Gpgsm 2.1 external key search gives duplicated results as Resolved.

No longer happens when the good old ldapwrapper is used.

May 2 2018, 1:41 PM · gnupg (gpg22), S/MIME, Bug Report, gpg4win, Windows, Windows 32

Apr 25 2018

aheinecke added a parent task for T2110: Gpgsm 2.1 external key search gives duplicated results: T3937: Dirmgnr: X509 Searches on Windows can hang.
Apr 25 2018, 4:52 PM · gnupg (gpg22), S/MIME, Bug Report, gpg4win, Windows, Windows 32
aheinecke added a comment to T2110: Gpgsm 2.1 external key search gives duplicated results.

Still happens. There are also "BER" errors that seem random.

Apr 25 2018, 4:52 PM · gnupg (gpg22), S/MIME, Bug Report, gpg4win, Windows, Windows 32

Apr 21 2018

ccharabaruk added a comment to T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.

I just took a look through assuan-socket.c and it appears that we just need to send the nonce and don't need to read anything back. We also found a bug on our side that was preventing the nonce from being sent, which has been fixed. The error message logged above no longer happens.

Apr 21 2018, 9:16 PM · Not A Bug, workaround, gnupg24, Windows, ssh
werner added a comment to T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.

The nonce is a string of octets thus it needs to be passed verbatim. I would need to study the code in libassun/src/assuan-socket.c to tell more.

Apr 21 2018, 12:11 AM · Not A Bug, workaround, gnupg24, Windows, ssh

Apr 20 2018

ccharabaruk added a comment to T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.

@werner After sending the nonce value from the socket file, does anything need to be read back before ssh-agent commands can be sent? Are there any byte ordering requirements for sending the nonce or can they be sent in the same order as they are in the file?

Apr 20 2018, 5:41 PM · Not A Bug, workaround, gnupg24, Windows, ssh

Apr 16 2018

bernhard added a comment to T3904: Clarify suggestion for diskperf.

Got the question about this note from a user (in a internal email) and I see the problem that users do not have enough information to decide this. They do not know what the consequences of this note are (and suspect it to be the cause of error of they see it together with other problems). So to me it is more than a 'wish' as it will generate questions and leaves users in a situation where they cannot progress by their own in most of the situations.

Apr 16 2018, 12:00 PM · Windows, libgcrypt
werner triaged T3904: Clarify suggestion for diskperf as Wishlist priority.
Apr 16 2018, 11:41 AM · Windows, libgcrypt
werner added a comment to T3904: Clarify suggestion for diskperf.

It is not an error or even a warning but just a NOTE. Thus the user should decide. it is not even translated and most systems this is enabled anyway.

Apr 16 2018, 11:41 AM · Windows, libgcrypt
tinkerwolf added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

Did that help any?

Apr 16 2018, 2:47 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report

Apr 14 2018

ccharabaruk added a comment to T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.

I've been working with one of Microsoft's developers on a temporary tool that should bridge the connection between named pipes and the Unix sockets emulation used by gpg-agent but things appear to trip up with sending the nonce. From the position of the tool, the nonce value is successfully sent (send returns 16), but never seems to be picked up by gpg-agent. Instead both gpg-agent and the bridge sit there until whatever tool is using them (I test using ssh-add -l) is terminated, at which point gpg-agent immediately spits up the message

Apr 14 2018, 4:37 AM · Not A Bug, workaround, gnupg24, Windows, ssh

Apr 13 2018

bernhard updated the task description for T3904: Clarify suggestion for diskperf.
Apr 13 2018, 3:27 PM · Windows, libgcrypt
bernhard created T3904: Clarify suggestion for diskperf in the S1 Public space.
Apr 13 2018, 3:26 PM · Windows, libgcrypt

Apr 12 2018

tinkerwolf added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

So I used a debugger to see if I could garner any additional info. Here's the log:

Apr 12 2018, 10:17 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report

Apr 11 2018

gniibe closed T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows as Resolved.

Workaround is implemented in 2.2.6.

Apr 11 2018, 1:59 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Apr 10 2018

tinkerwolf added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.
dirmngr -v --debug ipc,dns,network --log-file - --server --debug-wait 3
Apr 10 2018, 8:41 PM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report
werner added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

--debug-wait 3

Apr 10 2018, 1:51 PM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report
tinkerwolf added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

@werner here's the only output I get:

Apr 10 2018, 10:53 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report
werner triaged T3381: dirmngr won't start on Windows 10 with admin level account as Normal priority.

Please kill all existing dirmngr instances and don't run any programs which will trigger it to be started (e.g. Kleopatra). Then run in a _standard_ shell (cmd.exe):

Apr 10 2018, 10:48 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report
tinkerwolf added a comment to T3381: dirmngr won't start on Windows 10 with admin level account.

I, too, have this problem. I have Windows 10 Pro 64-bit with BitDefender Total Security. My first reaction when this wasn't working was to disable all functions on BitDefender. That didn't help, so I ran dirmngr as admin in cmd (I despise PowerShell) without any luck. I created a non-admin user and ran it in there, again without luck. I've come up dry. No logs, no output, and no answers. Is there anything shy of downgrading dirmngr that will make this work? Has there been any progress as to figuring this out?

Apr 10 2018, 10:05 AM · libassuan, Restricted Project, gpg4win, dirmngr, Windows, Bug Report
werner added a comment to T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.

Rhat's for the client, right. I never used it. We used to run a Windows 8 instance in a VM to run tests via ssh on it. That worked most not really stable. For obvious reasons I am more interested in the server part ;-)

Apr 10 2018, 8:15 AM · Not A Bug, workaround, gnupg24, Windows, ssh
ccharabaruk added a comment to T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.

I would argue that the Windows port of OpenSSH is not unstable at this point, especially given that Microsoft is even providing it as an installable feature in the next regular Windows 10 release. The fact that the port is now using actual OpenSSH version numbers instead of their own 0.x versions lends credence to this as well.

Apr 10 2018, 2:19 AM · Not A Bug, workaround, gnupg24, Windows, ssh

Apr 9 2018

werner closed T3720: Crashes on Windows if homedir is a windows drive letter as Resolved.
Apr 9 2018, 2:55 PM · gnupg (gpg22), Windows
werner added a comment to T3720: Crashes on Windows if homedir is a windows drive letter.

Yes. However, I have tested a fix for the empty value.

Apr 9 2018, 2:45 PM · gnupg (gpg22), Windows
aheinecke added a comment to T3720: Crashes on Windows if homedir is a windows drive letter.

Have you tried it multiple times? If it's unintialized memory access maybe you got lucky?

Apr 9 2018, 1:30 PM · gnupg (gpg22), Windows
werner added a comment to T3720: Crashes on Windows if homedir is a windows drive letter.

I still can't reproduce the crash (on Vista).

Apr 9 2018, 1:26 PM · gnupg (gpg22), Windows
werner triaged T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent as Normal priority.

Thanks for the pointer. But as long as the Windows ssh server is that instable I see no urgent need to add this to GnuPG.

Apr 9 2018, 10:25 AM · Not A Bug, workaround, gnupg24, Windows, ssh

Apr 7 2018

ccharabaruk created T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent.
Apr 7 2018, 12:59 AM · Not A Bug, workaround, gnupg24, Windows, ssh

Mar 28 2018

gniibe claimed T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 28 2018, 1:29 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 27 2018

aheinecke added a comment to T3720: Crashes on Windows if homedir is a windows drive letter.

In my opinion we should assume that c:/ was meant.

Mar 27 2018, 8:10 AM · gnupg (gpg22), Windows

Mar 26 2018

werner added a comment to T3720: Crashes on Windows if homedir is a windows drive letter.

Under Wine it does not crash but returning an empty string is not a good idea in any case. The question is what to do with "c:". The usual meaning is to use the current directory of drive C. But that does not make much sense. Should we simply assume that "c:/" was meant?

Mar 26 2018, 6:56 PM · gnupg (gpg22), Windows
werner edited projects for T3720: Crashes on Windows if homedir is a windows drive letter, added: gnupg (gpg22); removed gnupg.
Mar 26 2018, 10:20 AM · gnupg (gpg22), Windows
werner raised the priority of T3720: Crashes on Windows if homedir is a windows drive letter from Normal to High.
Mar 26 2018, 10:20 AM · gnupg (gpg22), Windows

Mar 20 2018

aheinecke added a parent task for T3776: Indicate that and why PGP-2 pubkeys (or secret) keys are not imported: T3742: Gpg4win 3.1.0.
Mar 20 2018, 9:49 AM · Windows, kleopatra
aheinecke closed T3776: Indicate that and why PGP-2 pubkeys (or secret) keys are not imported as Resolved.

Kleopatra now shows this:

Mar 20 2018, 9:49 AM · Windows, kleopatra

Mar 13 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I've contacted Yubico to review this ticket.

Mar 13 2018, 3:03 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Hi, that works as advertised. If this is the best solution yubikey permits us I am ok with it.

Mar 13 2018, 2:36 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I put an entry: https://wiki.gnupg.org/SmartCard#Known_problem_of_Yubikey

Mar 13 2018, 5:35 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

After resume, because resume is not detected, some user interaction is required to cause an error.
gpg --card-status (which will only show partial information) is enough. Or, ssh failure. After failure, scdaemon reconnects the token.
Then, you can use it again without plug-off/plug-in.

Mar 13 2018, 4:58 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks a lot for pointers and suggestion.
Well, the problem of Yubikey itself cannot be solved by others, we can put some workaround for the error recovery.
So, this is another try of mine to improve error recovery.

Mar 13 2018, 4:52 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 12 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
  • There was same problem in yubico-piv-tool and it was solved by detecting error state (0x80100068) and reconnecting to the smart card if necessary [1]
  • There is also a thread in OpenSC discussing this issue [2] and relevant PRs [3]
  • I also found a project that claims to fix SCARD_W_RESET_CARD by disabling exclusive access to the card before asking for PIN (and then they enable exclusive access again) [4]
Mar 12 2018, 8:54 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Part of the problem is Yubikey side, I suppose. (Because my implementation of Gnuk Token has no problem for suspend/resume if it's in-use.)

Mar 12 2018, 1:24 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Again, thanks a lot for your testing. The log said: The code I added cannot detect the event of suspend/resume.
It seems that there is no way to recover from suspend/resume for Yubikey.

Mar 12 2018, 1:19 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 9 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Yeah, this is better, we got apdu_get_status => sw=0x0 status=7 and I can auth with this version as usual. After sleep-wake cycle it would however fail with pcsc_transmit failed: reset card (0x80100068). Logs attached.

Mar 9 2018, 7:09 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks a lot for your testing. So, apparently, the PC/SC behavior is different between GNU/Linux and Windows.
Thus, I pushed another change: rG1e27c0e04cd3: scd: More fix with PC/SC for Windows.. Please test this. (Both of previous version and this version work well on GNU/Linux for operations not including suspend/resume with Yubikey and Gnuk Token, while my Yubikey with PC/SC doesn't work well for suspend/resume.)

Mar 9 2018, 2:02 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 8 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks, this version of scdaemon executes.

Mar 8 2018, 7:45 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Sorry, my build was not good even if it's for x86_64 (I used development version of libassuan, etc.).

Mar 8 2018, 6:07 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 6 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

@gniibe it seems the patched scdaemon.exe is 64 bit executable and it requires libassuan6-0.dll. However I got installed 32 bit version of gpg that only has incompatible libassuan-0.dll. I scanned whole computer for the missing lib, skimmed your ftp for 64 bit binaries and looked into gpg4win installer to find it, but no luck. There is also libassuan github repo, but I would like to avoid building the dll myself; there would probably be more than one dll to build anyway.

Mar 6 2018, 9:44 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe changed the visibility for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 6 2018, 8:27 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe triaged T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows as Normal priority.

If possible, please try with this (patched version of scdaemon):

Mar 6 2018, 8:25 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
aheinecke edited projects for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows, added: gpg4win; removed Windows 64.
Mar 6 2018, 7:53 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I realized that suspend/resume is not supported yet on GNU/Linux: https://anonscm.debian.org/cgit/pcsclite/PCSC.git/tree/TODO#n7
So, I can't test myself.
Here is an attempt to improve:


The reference is: https://stackoverflow.com/questions/11294638/how-to-use-scardgetstatuschange-correctly-on-windows-8

Mar 6 2018, 2:11 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

It looks like SCardGetStatusChange doesn't return failure after wake up.
Here, what we need is catching the event of wake up, which requires reset of the card.
I think that we can check by the dwEventState field.
I'll try on GNU/Linux environment, then ask you to try.

Mar 6 2018, 12:41 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey