Re: please help "No pinentry"

2017-08-31 Thread Mario Castelán Castro
On 31/08/17 16:36, Bereshka Web and Photo wrote:
> it happens all the time, solution is of itself as soon as I ask it on a forum
> or like John Robbins said “My cat, as it turns out, is an excellent debugger, 
> and she has helped me solve a number of nasty bugs when I talked to her about 
> them” :) not exact situation, but little bit similar ) 

I have heard about that. The premise is that explaining a problem
sometimes makes how to solve it evident, especially when explaining that
a program does not work. There is even a web page about something like
that: .

-- 
Do not eat animals; respect them as you respect people.
https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: please help "No pinentry"

2017-08-31 Thread Mario Castelán Castro
Well, if the problem is solved then I am glad for you)))

-- 
Do not eat animals; respect them as you respect people.
https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: please help "No pinentry"

2017-08-31 Thread Bereshka Web and Photo
haha that’s cool, now it’s clear why ftp client for mac Сyberduck chose that 
image)




> On 31 Aug 2017, at 17:06, Mario Castelán Castro  
> wrote:
> 
> On 31/08/17 16:36, Bereshka Web and Photo wrote:
>> it happens all the time, solution is of itself as soon as I ask it on a forum
>> or like John Robbins said “My cat, as it turns out, is an excellent 
>> debugger, and she has helped me solve a number of nasty bugs when I talked 
>> to her about them” :) not exact situation, but little bit similar ) 
> 
> I have heard about that. The premise is that explaining a problem
> sometimes makes how to solve it evident, especially when explaining that
> a program does not work. There is even a web page about something like
> that: .
> 
> -- 
> Do not eat animals; respect them as you respect people.
> https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan
> 
> ___
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users

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


Re: please help "No pinentry"

2017-08-31 Thread Bereshka Web and Photo
it happens all the time, solution is of itself as soon as I ask it on a forum
or like John Robbins said “My cat, as it turns out, is an excellent debugger, 
and she has helped me solve a number of nasty bugs when I talked to her about 
them” :) not exact situation, but little bit similar ) 


> On 31 Aug 2017, at 16:24, Mario Castelán Castro  
> wrote:
> 
> Well, if the problem is solved then I am glad for you)))
> 
> -- 
> Do not eat animals; respect them as you respect people.
> https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan
> 
> ___
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users


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


Re: please help "No pinentry"

2017-08-31 Thread Bereshka Web and Photo

> On 31 Aug 2017, at 15:33, Robert J. Hansen  wrote:
> 
>> Then I tried few times to uninstall gnupg using the command sudo apt-get
>> install gnupg in Terminal.
> 
> That shouldn't have worked.  You're on a Mac, and apt is used by
> derivatives of Debian GNU/Linux.
> 
> (Well, wait, I guess Fink uses apt, doesn't it?)

Sorry, I don’t know who is that )) I’m very new to all of this, but it’s very 
interesting
Thanks for attention 

> 
>> previously, adding this line - pinentry-program
>> /bereshka/bin/pinentry-qt
> 
> That doesn't look like a valid path.  On a Mac, it would be
> /Users/bereshka/bin/pinentry-qt, if anything.  Did you verify that the
> path actually exists?
> 
>> But today it just starts to work. 
> 
> Hey, if a miracle happened and your problem got solved, then ... your
> problem got solved, and we're happy for you.  :)


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


Re: please help "No pinentry"

2017-08-31 Thread Robert J. Hansen
> Then I tried few times to uninstall gnupg using the command sudo apt-get
> install gnupg in Terminal.

That shouldn't have worked.  You're on a Mac, and apt is used by
derivatives of Debian GNU/Linux.

(Well, wait, I guess Fink uses apt, doesn't it?)

> previously, adding this line - pinentry-program
> /bereshka/bin/pinentry-qt

That doesn't look like a valid path.  On a Mac, it would be
/Users/bereshka/bin/pinentry-qt, if anything.  Did you verify that the
path actually exists?

> But today it just starts to work. 

Hey, if a miracle happened and your problem got solved, then ... your
problem got solved, and we're happy for you.  :)

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


Re: please help "No pinentry"

2017-08-31 Thread Bereshka Web and Photo
Mario, 
I know about reply all :) but didn’t want to be annoying with all one hundred 
questions that I was going to ask :)) 
But I agree that it may help to somebody else to solve the same issue. 
I  used this website to download and install 
https://www.gnupg.org/download/index.html 


Robert,
It was my guess too, that there is a conflict between the original gnupg and 
that third-part GnuPG, that after deinstallation caused misunderstood in the 
system, causing some parameters, that it could not give anymore. 

Then I tried few times to uninstall gnupg using the command sudo apt-get 
install gnupg in Terminal. I edited this file gpg-agent.conf  previously, 
adding this line - pinentry-program /bereshka/bin/pinentry-qt . But it didn’t 
help and I removed it. Actually when I opened it first time, this file, it was 
empty and it’s empty today too, so there is noting to comment. 

I was struggling with that about two weeks ago and read tones of information in 
the internet and nothing helped. But after I asked that question and got all 
your kind advices I decided what if a miracle happens and I just try to decrypt 
a message again. And I was very surprised, because it works. I didn’t do any 
changes today, I just opened again that file config to look at. And I restarted 
my laptop many times right after all that changes that I did two weeks ago, but 
it didn’t help at that time. But today it just starts to work. 

Thank ya’ll

Best regards,
Anastasiia 

> On 31 Aug 2017, at 10:24, Mario Castelán Castro  
> wrote:
> 
> On 31/08/17 09:12, Bereshka Web and Photo wrote:
>> Hello, Mario
>> Thank you for your advice and attention.
> 
> Hello.
> 
> When replying to a message from a mailing list list, please reply to the
> mailing list instead of the sender only. Most e-mail clients have a
> “Reply to list” button to do this quickly.
> 
>>> There are several such
>>> pinentry programs. You can install several of them but you just need one.
>> 
>> for example? is this program is not in the package of Gnupg? 
>> I use Mac
> 
> A pinentry program may or may not come with GNU PG. It depends on how
> you install it. If you compiled from source (you would know if you did
> that), then you need to install pinentry separately.
> 
> If you used a third-party software bundle that includes GNU PG, then it
> depends on the choice of the developers of *that* software bundle.
> 
> For examples of pinentry programs, take the ones I mentioned in my
> previous message.
> 
>> well, then why other people on mac don’t have that problems, they just 
>> download gnupg and start using, they don’t install anything additionally) 
> 
> The GNU PG project does not distribute any binaries for Mac OS X. As for
> the people who “download gnu pg and start using it”, I assume they
> install a software bundle containing GNU PG. However, although such
> bundle may include GNU PG, it is a third-party project, not part of GNU
> PG itself.
> 
> Anyway, I recommend using GNU/Linux because unlike Mac OS X it is free
> software.  Installing GNU
> PG in any reasonable GNU/Linux distribution is trivial.
> 
> If you want to continue using Mac OS X you probably want to use one of
> those bundled made by a third party.
> 
> *To summarize:* You are probably using an unofficial software bundle for
> Mac OS X that includes GNU PG. The GNU PG developers in general are not
> responsible for any such bundle. You must consult the documentation of
> your bundle.
> 
> Regards.
> 
> -- 
> Do not eat animals; respect them as you respect people.
> https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan
> 

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


Re: please help "No pinentry"

2017-08-31 Thread Mario Castelán Castro
On 31/08/17 09:12, Bereshka Web and Photo wrote:
> Hello, Mario
> Thank you for your advice and attention.

Hello.

When replying to a message from a mailing list list, please reply to the
mailing list instead of the sender only. Most e-mail clients have a
“Reply to list” button to do this quickly.

>> There are several such
>> pinentry programs. You can install several of them but you just need one.
> 
> for example? is this program is not in the package of Gnupg? 
> I use Mac

A pinentry program may or may not come with GNU PG. It depends on how
you install it. If you compiled from source (you would know if you did
that), then you need to install pinentry separately.

If you used a third-party software bundle that includes GNU PG, then it
depends on the choice of the developers of *that* software bundle.

For examples of pinentry programs, take the ones I mentioned in my
previous message.

> well, then why other people on mac don’t have that problems, they just 
> download gnupg and start using, they don’t install anything additionally) 

The GNU PG project does not distribute any binaries for Mac OS X. As for
the people who “download gnu pg and start using it”, I assume they
install a software bundle containing GNU PG. However, although such
bundle may include GNU PG, it is a third-party project, not part of GNU
PG itself.

Anyway, I recommend using GNU/Linux because unlike Mac OS X it is free
software.  Installing GNU
PG in any reasonable GNU/Linux distribution is trivial.

If you want to continue using Mac OS X you probably want to use one of
those bundled made by a third party.

*To summarize:* You are probably using an unofficial software bundle for
Mac OS X that includes GNU PG. The GNU PG developers in general are not
responsible for any such bundle. You must consult the documentation of
your bundle.

Regards.

-- 
Do not eat animals; respect them as you respect people.
https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: please help "No pinentry"

2017-08-31 Thread Mario Castelán Castro
On 31/08/17 07:20, Bereshka wrote:
> Hello, Dear Creators :) 
> 
> I will very appreciate if you can help me, because I was surfing a lot in the 
> internet looking for an answer, and read tones of forums, but did not find 
> solution.
> 
> So I installed gnupg 2 , command gpg didn’t work in Terminal. I was confused 
> and decided to try Gnupg tools suite, I installed that and created my keys 
> and passphrase. Later I knew that I should type gpg2 in Terminal to work with 
> that. So I got encrypted message and I tried to decrypt it, but it just 
> didn’t show a result, it said that by whom it was encrypted and to whom, 
> that’s all. We decided that it might be a problem because go GPG tools suite, 
> maybe it causes conflict. So I decided to deinstall GPG Tools. Before to do 
> that I exported my public, private, rev certificate, then I deinstalled this 
> software. I located all keys to a folder “keys” at my user root folder). Then 
> I imported all keys through terminal. To check I do —list-keys and I see my 
> imported key and my husband’s key that was imported as well. 
> 
> 
> 1. The problem is that I can encrypt message and send it to him and that he 
> can decrypt it. But when I get encrypted message from him I can’t decrypt it. 
> It does’t ask my passphrase. It asked when I had GPG Tools, but even with 
> asked passpharase with GPG Tools being installed i didn’t get a decrypted 
> message
> Now I don’t have GPG Tools and when I do command gpg2 Enter and insert his 
> message I get this 
> 
> gpg: public key decryption failed: No pinentry
> gpg: decryption failed: No secret key

Hello. GNU PG version 2.* uses a program called “pinentry” to ask for
passwords whenever it requires a password. There are several such
pinentry programs. You can install several of them but you just need one.

If you use GNU/Linux, search for “pinentry” in the listing of package in
your package manager. There will be several such programs. The only
user-visible difference (as far as I know) is the way in which they ask
for password and the look and feel.

If you want a graphical window to ask you for password, install
“pinentry-gtk2”, “pinentry-gnome” or “pinentry-qt”. If you want to be
asked within the terminal emulator, install “pinentry-curses” or
“pinentry-tty”.

I have never used “GPG Tools” so I can not provide any help in this regard.

Regards.

-- 
Do not eat animals; respect them as you respect people.
https://duckduckgo.com/?q=how+to+(become+OR+eat)+vegan



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: please help "No pinentry"

2017-08-31 Thread Robert J. Hansen
> Hello, Dear Creators :) 

I'm not a creator (just a FAQ maintainer), but maybe I can shed some
light on your troubles.

> But when I get encrypted message from him I can’t
> decrypt it. It does’t ask my passphrase. It asked when I had GPG Tools,
> but even with asked passpharase with GPG Tools being installed i didn’t
> get a decrypted message

I think I might know the problem.  If I recall correctly, GPGTools ships
with its own custom pinentry dialog.  When you installed GPGTools, it
added a line in a configuration file telling GnuPG to use its custom
pinentry dialog; when you uninstalled GPGTools, that custom pinentry
dialog went away but the configuration file is still changed.  So GnuPG
is trying to use a pinentry dialog that doesn't exist.

From Terminal, open up ~/.gnupg/gpg-agent.conf in your text editor of
choice.  Look for a line called "pinentry-program" and place a hashmark
("#") in front of that line.  This will cause gpg-agent to skip that
line when reading the configuration file.

Then, from a Terminal window:

$ killall gpg-agent

... and try again to decrypt a message.

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