GPG Error Code 2

后端 未结 4 1091
情深已故
情深已故 2020-12-07 02:12

GPG is always returning 2 at the result. My code is as follows

$cmd = \"/usr/bin/gpg -a --recipient $to -e -o $outfile $infile\";

Where outfile

4条回答
  •  离开以前
    2020-12-07 02:27

    You also might want to concider adding key to trusted keys list:

    gpg.exe --edit-key KEY_NAME
    trust
    5 (level of trust)
    Y
    Save
    

    I've had some problems of --always-trust parameter not functioning properly on XP windows, this helped me solve the problem.

提交回复
热议问题