Hi,

I can confirm I've had for the last months some annoying (blocking!) issues 
with GPG2 on OI,
but some issues also happen on other operating systems (pin entry related), so 
this may be a GPG2 issue, and not an OI issue.  Anyway ...

What I do as workaround is use "loopback" mode, I'm not sure whether you tried 
that, from reading your posting I think you may have already tried that :

$ gpg2 --pinentry-mode loopback --gen-key                          

Currently I have installed version 2.3.2

$ gpg2 --version                                                   
gpg (GnuPG) 2.3.2
libgcrypt 1.9.4

This comes from 

$ pkg list gnupg libgcrypt                                         
NAME (PUBLISHER)                                  VERSION                    IFO
crypto/gnupg                                      2.3.2-2020.0.1.0           i--
system/library/security/libgcrypt                 1.9.4-2020.0.1.0           i--


Unfortunately even if I use "loopback" mode GPG2 is not working for me on OI.

For example when I try 

$ gpg2 --pinentry-mode loopback --gen-key                          

It hangs on:

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.

After a while I abort, no key is generated for me ...

David Stes

----- Op 27 sep 2021 om 4:51 schreef Discussion list for OpenIndiana 
openindiana-discuss@openindiana.org:

> All-
> 
> Anyone else using GnuPG on OI?  I'm seeing some strange/broken behavior
> somewhere between gpg2, gpg-agent, and pinentry.  I'm wondering if it's
> something with my install (or environment), or if others are having issues
> too.
> 
> Basically, when gpg2 does something that needs a passphrase, it's supposed
> to contact the gpg-agent, auto-starting it if necessary, and then the
> gpg-agent uses one of the pinentry programs for the actual prompting.
> 
> When I try ssh into my OI workstation and use gpg2, whatever is going on
> causes the (curses) pinentry screen to be blank.
> 
> I know it's not a problem with pinentry-curses, because I can interact
> with it directly and send the necessary "commands" via the "assuan"
> protocol to get it to display a password prompt window and correctly
> collect a password.
> 
> I've also had problems with gpg2 hanging and not exiting even after some
> operations.
> 
> I'm just wondering if anyone else is seeing similar issues, or if I need
> to look more closely at what might be wrong with my environment.
> 
> Thanks,
> 
> Tim
> --
> Tim Mooney                                             tim.moo...@ndsu.edu
> Enterprise Computing & Infrastructure /
> Division of Information Technology    /                701-231-1076 (Voice)
> North Dakota State University, Fargo, ND 58105-5164
> 
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to