Re: Can not import private key (Not enough space)

2024-04-09 Thread Moses via Gnupg-users
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

Thank you for your continued follow-up. I executed commands. Here are
the results:

C:\>gpgconf -V
* GnuPG 2.4.5 (cbff323b3)
MingW32
Windows 10.0 build 19045

* Libgcrypt 1.10.3 (aa161086)
version:1.10.3:10a03:1.48:13000:
cc:10:gcc:10-win32 20210110:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:sm4:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:blake2:sm3:
rnd-mod:w32:
cpu-arch:x86:
mpi-asm:i386/mpih-add1.S:i386/mpih-sub1.S:i386/mpih-mul1.S:i386/mpih-mul2.S:i386/mpih-mul3.S:i386/mpih-lshift.S:i386/mpih-rshift.S:
hwflist:intel-cpu:intel-bmi2:intel-ssse3:intel-sse4.1:intel-pclmul:intel-aesni:intel-rdrand:intel-avx:intel-avx2:intel-fast-vpgather:intel-rdtsc:
fips-mode:n:::
rng-type:standard:1:303:1:
compliance:::

* GpgRT 1.48 (77b7c5f)

* Libassuan 2.5.7 (cc2f776)

* KSBA 1.6.6 (3a43822)

* NTBTLS 0.3.2 (2c38007)


C:\>gpgconf -X
### Dump of all standard config files
### GnuPG 2.4.5 (cbff323b3)
### MingW32
### [VERSION file not found]
### Windows 10.0 build 19045
### Libgcrypt 1.10.3
### GpgRT 1.48
### Codepages: 65001 936 936
###

sysconfdir:C%3a\ProgramData\GNU\etc\gnupg
bindir:D%3a\software\GNU\Gpg4win\..\GnuPG\bin
libexecdir:D%3a\software\GNU\Gpg4win\..\GnuPG\bin
libdir:D%3a\software\GNU\Gpg4win\..\GnuPG\lib\gnupg
datadir:D%3a\software\GNU\Gpg4win\..\GnuPG\share\gnupg
localedir:D%3a\software\GNU\Gpg4win\..\GnuPG\share\locale
socketdir:C%3a\Users\███\AppData\Local\gnupg
dirmngr-socket:C%3a\Users\███\AppData\Local\gnupg\S.dirmngr
keyboxd-socket:C%3a\Users\███\AppData\Local\gnupg\S.keyboxd
agent-ssh-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent.ssh
agent-extra-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent.extra
agent-browser-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent.browser
agent-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent
homedir:C%3a\Users\███\AppData\Roaming\gnupg

PATH=D:\software\VMware\bin\;C:\Program Files\Common
Files\Oracle\Java\javapath;C:\Program
Files\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\Program Files
(x86)\Common Files\Intel\Shared
Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
Files\dotnet\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client
SDK\ODBC\170\Tools\Binn\;D:\software\GNU\GnuWin32\bin;D:\software\Git\cmd;D:\software\Python\Python39\Scripts;D:\software\Python\Python39\;D:\software\emacs\bin;C:\Program
Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL
Server\150\Tools\Binn\;C:\Users\███\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\███\App;D:\software\Calibre\;C:\Program
Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files
(x86)\cloudflared\.;D:\software\GNU\Gpg4win\..\GnuPG\bin;C:\Program
Files\WireGuard\;C:\Users\███\AppData\Local\Programs\Python\Python310\;C:\Users\███\AppData\Local\Microsoft\WindowsApps;C:\Users\███\.dotnet\tools;C:\Program
Files\Azure Data
Studio\bin;D:\software\Google\CloudSDK\google-cloud-sdk\bin

###
### global config "C:\ProgramData\GNU\etc\gnupg\common.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\common.conf": not installed
###

###
### global config "C:\ProgramData\GNU\etc\gnupg\gpg-agent.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\gpg-agent.conf"
###
- --8<---cut here---start->8---

###+++--- GPGConf ---+++###
verbose
verbose
debug-level guru
###log-file C:\Users\███\AppData\Roaming\gnupg\gpg-agent.log
###+++--- GPGConf ---+++### 03/08/24 12:14:59 Coordinated Universal Time
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
- --8<---cut here---end--->8---

###
### global config "C:\ProgramData\GNU\etc\gnupg\scdaemon.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\scdaemon.conf"
###
- --8<---cut here---start->8---

###+++--- GPGConf ---+++###
verbose
verbose
verbose
verbose
verbose
###+++--- GPGConf ---+++### 03/08/24 10:46:59 Coordinated Universal Time
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
- --8<---cut here---end--->8---

###
### global config "C:\ProgramData\GNU\etc\gnupg\dirmngr.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\dirmngr.conf"
###
- --8<---cut here---start->8---

###+++--- GPGConf ---+++###
#allow-version-check
allow-version-check
honor-http-proxy
keyserver hkps://keys.openpgp.org

Re: OpenPGP card not available

2024-04-09 Thread Dan Fandrich
On Tue, Apr 09, 2024 at 12:11:31PM +0200, Werner Koch wrote:
> By default we are not using PC/SC on Linux but direct access to the
> reader via USB.  Now if pcscd is already running and has access to the
> reader scdaemon won't be able to access the reader via USB.
> 
> 2.2 falls back to PC/SC if it can't use the reader via USB.

That explains the difference it nicely.

> Either shutdown pcscd or add
> 
> disable-ccid-driver
> 
> to ~/.gnupg/scdaemon.conf

Shutting down pcscd fixed it!  But I have other software that needs pcscd to
access the card, so I added "disable-ccid" to scdaemon.conf and gpg now works
even though pcscd is running.  Thanks for the help.

Dan

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can not import private key (Not enough space)

2024-04-09 Thread Werner Koch via Gnupg-users
Hi!

On Tue,  9 Apr 2024 12:21, Moses said:
> C:\>gpgconf -L

which merely shows that you installed the software on d:\software and
kep the user data at the usual C: directories.  I see nothing strange.

To recap your problem was:

c:\> gpg --import private-keys.asc
gpg: enabled compatibility flags:
[snipped]
gpg: key xxx: error sending to agent: Not enough space

I don't known why you get that error which might hint at a out of memory
(not out of disk space) problem.We could look at the output of

  gpgconf -V

and

  gpgconf -X

but I doubt that this will show anything useful for your case.  Can you
start kleopatra?  If so, what does its selftest tell?

What you can do is:

  gpgconf -K all

to stop all background processes (or use the taskmgr or logout and in
again).

  cd %APPDATA%
  ren gnupg gnupg.save
  cd %LOCALAPPDATA%
  ren gnupg gnupg.save

and then try agin.  If this does work you might have insufficent
permissions somewhere below %APPDATA%\gnupg .  If kleopatra starts you
can also teh DbgViewer tool from Sysinternals to see the diagnostics
from Kleopatra.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein


openpgp-digital-signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can not import private key (Not enough space)

2024-04-09 Thread Moses via Gnupg-users
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Returns as follows:
(just blacked out the username...)

C:\>gpgconf -L
sysconfdir:C%3a\ProgramData\GNU\etc\gnupg
bindir:D%3a\software\GNU\Gpg4win\..\GnuPG\bin
libexecdir:D%3a\software\GNU\Gpg4win\..\GnuPG\bin
libdir:D%3a\software\GNU\Gpg4win\..\GnuPG\lib\gnupg
datadir:D%3a\software\GNU\Gpg4win\..\GnuPG\share\gnupg
localedir:D%3a\software\GNU\Gpg4win\..\GnuPG\share\locale
socketdir:C%3a\Users\■\AppData\Local\gnupg
dirmngr-socket:C%3a\Users\■\AppData\Local\gnupg\S.dirmngr
keyboxd-socket:C%3a\Users\■\AppData\Local\gnupg\S.keyboxd
agent-ssh-socket:C%3a\Users\■\AppData\Local\gnupg\S.gpg-agent.ssh
agent-extra-socket:C%3a\Users\■\AppData\Local\gnupg\S.gpg-agent.extra
agent-browser-socket:C%3a\Users\■\AppData\Local\gnupg\S.gpg-agent.browser
agent-socket:C%3a\Users\■\AppData\Local\gnupg\S.gpg-agent
homedir:C%3a\Users\■\AppData\Roaming\gnupg




On Tue, Apr 9, 2024 at 10:05 AM Werner Koch  wrote:
>
> On Mon,  8 Apr 2024 11:42, Moses said:
>
> > C:\> gpg-connect-agent -v
> >> getinfo version
> > D 2.4.5
>
> Okay, that works.
>
> >> gpgconf -L
> > ERR 67109139 Unknown IPC command 
>
> Please enter this on the command line not at the gpg-connect-agent
> prompt.
>
>
> Salam-Shalom,
>
>Werner
>
> --
> The pioneers of a warless world are the youth that
> refuse military service. - A. Einstein
-BEGIN PGP SIGNATURE-

iQIzBAEBCAAdFiEEtS81xZ6ggCm51urXjBWeIrrYv8gFAmYVMnsACgkQjBWeIrrY
v8hGFRAAq2Y7Rzahrz3nBKoLkO29rzKMpurp0XXhOk0ONPXcJGKCLDq6UvDa1VmH
yowbbY87lOSucAKjyekrr1qr0as7p76/rRQPQeorXjQF/GeEFTUEzolRWJk70M3C
+Wcxi9WbNV/VmZsnJUjpsG4FKyqgBqhKdildPm1CvTF4mmF+X5cOK1swi3GoWf3I
LGF9zJ+Gbm5Shs65htJ9xCSryCYEHciZHev5zMt6yQM1ZBBjKbkOC2OLRoFSBCej
CDHcmY4tA6a//De4jUyv3ypoxBv4bPOLOgvDzRVne62hhOwAQqtFF8ZgX+McS4cs
Zw+xJycPZVDegFvlQW2qwhtJWYfUXCGpxlrsi/1zoOgHp1uaR8O/8x8gszBuiXKj
kuLIojRZWRnt1lYItO3oUO6t/z95HfNUE1aT4hKcGuDx/yK4/1h4i9VFb48W0qAu
WoWuiON8Q36SsLA2C6cuPfpjx5gusX31iiuMoNH5IoujN6Ip4al9v0Goo76CSe7l
Sqy4iLmAh3DhTt2prw70k93GAMD3oORT/AGk1SyxDoRzRmV99BELdr4ZGFyJnhqW
wvBjxtl0ynRg7UOKilug+tZbTRSlAqNMeBAKLn90aSsmy8f/MZuPvyDnhowpoL/a
7jpZaLlTvKvzi++Yd5MHvyX97rOrzIndsVyC1Qr1yN+EuQa1ubI=
=3+BK
-END PGP SIGNATURE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


OpenPGP card not available

2024-04-09 Thread Dan Fandrich
Running "gpg --card-status" with a configured Yubikey plugged in on an x86_64
Linux machine just gives me these errors when running 2.4.5:

gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device

However, leaving everything else the same and just running 2.2.42 (& earlier
2.2.x) gives me the output I'd expect with that command.  I've tried some of
the advice I've found of adding "reader-port Yubico Yubi" and "pcsc-shared" to
scdaemon.conf didn't make a difference. Enabling some scdaemon logging shows
this interesting bit in the log file:

2024-04-08 16:45:28 scdaemon[62168] DBG: chan_7 <- SERIALNO
2024-04-08 16:45:28 scdaemon[62168] DBG: apdu_open_reader: BAI=70202
2024-04-08 16:45:28 scdaemon[62168] DBG: apdu_open_reader: new device=70202
2024-04-08 16:45:28 scdaemon[62168] ccid open error: skip
2024-04-08 16:45:28 scdaemon[62168] DBG: chan_7 -> ERR 100696144 No such device 


With 2.2.42, I see this (with an actual serial number) and all works well:

2024-04-08 16:38:43 scdaemon[36563] DBG: chan_7 <- SERIALNO
2024-04-08 16:38:43 scdaemon[36563] DBG: apdu_open_reader: BAI=70202
2024-04-08 16:38:43 scdaemon[36563] DBG: apdu_open_reader: new device=70202
2024-04-08 16:38:43 scdaemon[36563] ccid open error: skip
2024-04-08 16:38:43 scdaemon[36563] DBG: chan_7 -> S SERIALNO 
D000
2024-04-08 16:38:43 scdaemon[36563] DBG: chan_7 -> OK
...

Running "echo SERIALNO | scd/scdaemon --server" is enough.  I've tried both
pcsc-lite 1.9.9 and 2.0.3 without a difference.  I'm not sure how to drill
down to figure out further to figure out what else could be causing the
failure. One obvious difference is that the working version is linked against
libpthread.so.0 but the failing one is linked against libnpth.so.0, but that
seems to have to do with locking which I wouldn't expect to make difference
with a simple local test.

I was hoping to bisect to the problem except that the 2.3 and 2.4 branches fail
at their .0 versions. Does someone have a suggestion to debug further?

Dan

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: OpenPGP card not available

2024-04-09 Thread Werner Koch via Gnupg-users
On Mon,  8 Apr 2024 21:50, Dan Fandrich said:

> Running "echo SERIALNO | scd/scdaemon --server" is enough.  I've tried both
> pcsc-lite 1.9.9 and 2.0.3 without a difference.  I'm not sure how to drill

By default we are not using PC/SC on Linux but direct access to the
reader via USB.  Now if pcscd is already running and has access to the
reader scdaemon won't be able to access the reader via USB.

2.2 falls back to PC/SC if it can't use the reader via USB.

Either shutdown pcscd or add

disable-ccid-driver

to ~/.gnupg/scdaemon.conf

More debug output can be logged by adding

debug cardio
debug-ccid-reader


Shalom-Salam,

   Werner


-- 
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein


openpgp-digital-signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can not import private key (Not enough space)

2024-04-09 Thread Werner Koch via Gnupg-users
On Mon,  8 Apr 2024 11:42, Moses said:

> C:\> gpg-connect-agent -v
>> getinfo version
> D 2.4.5

Okay, that works.

>> gpgconf -L
> ERR 67109139 Unknown IPC command 

Please enter this on the command line not at the gpg-connect-agent
prompt.


Salam-Shalom,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein


openpgp-digital-signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users