Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18950
| From | De ongekruisigde <ongekruisigde@news.eternal-september.org> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: gnupg::encrypt(): get_key failed |
| Date | 2022-05-28 08:21 +0000 |
| Organization | Ongekruisigden |
| Message-ID | <t6sm26$9bp$1@dont-email.me> (permalink) |
| References | <t6sljc$1i9$1@gioia.aioe.org> |
On 2022-05-28, Fx ROOM <naso@tata.new> wrote:
> $gpg = new gnupg();
> $gpg->addencryptkey("8660281B6051D071D94B5B230549F9DC851566DC");
>
> var_dump(
> $gpg->geterror(),
> $gpg->encrypt("just a test")
> );
>
> OUTPUT:
>
> string(14) "get_key failed"
> bool(false)
>
> Why?
The addencryptkey() makes a call to gnupg (do you have that installed,
is GNUPGHOME environment variable set, is the key known to gnupg? etc.)
https://www.php.net/manual/en/function.gnupg-addencryptkey.php
--
I've heard a Jew and a Muslim argue in a Damascus cafe with less
passion than the emacs wars." [Ronald Florence <ron@18james.com> in
<ueu1c4mbrc.fsf@auda.18james.com>]
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
gnupg::encrypt(): get_key failed Fx ROOM <naso@tata.new> - 2022-05-28 10:13 +0200
Re: gnupg::encrypt(): get_key failed De ongekruisigde <ongekruisigde@news.eternal-september.org> - 2022-05-28 08:21 +0000
Re: gnupg::encrypt(): get_key failed Fx ROOM <naso@tata.new> - 2022-05-28 13:37 +0200
Re: gnupg::encrypt(): get_key failed "J.O. Aho" <user@example.net> - 2022-05-28 23:39 +0200
Re: gnupg::encrypt(): get_key failed Fx ROOM <naso@tata.new> - 2022-05-29 12:07 +0200
csiph-web