Warning: gnupg::adddecryptkey(): get_key failed
问题 I am using gnupg php functions to decrypt a file. With the help of another post on here I managed to get it to list the keys ( gnupg_keyinfo ) by using gnupg_import and changing the owner of the gnupg directory and chmod permissions. I can also successfully encrypt a file using gnupg_encrypt . But when it comes to decrypting a file using gnupg_decrypt it doesn't work with an error message that reads: Warning: gnupg::adddecryptkey(): get_key failed This is the code I am using to encrypt and