Php gnuPGP pgp结果中没有签名
当我尝试使用PGP对测试进行签名时,结果错误中没有签名Php gnuPGP pgp结果中没有签名,php,pgp,Php,Pgp,当我尝试使用PGP对测试进行签名时,结果错误中没有签名 public function pgpSign($strFileContent, $strSignKey) { $pgp = new \gnupg(); $pgp->seterrormode(\gnupg::ERROR_EXCEPTION); $arrFingerPrint = $pgp->import($strSignKey); $pgp->addsignkey($arrFingerPr
public function pgpSign($strFileContent, $strSignKey) {
$pgp = new \gnupg();
$pgp->seterrormode(\gnupg::ERROR_EXCEPTION);
$arrFingerPrint = $pgp->import($strSignKey);
$pgp->addsignkey($arrFingerPrint['fingerprint']);
$pgp->setsignmode(GNUPG_SIG_MODE_DETACH);
return $pgp->sign($strFileContent);
}
public function test() {
return $this->pgpSign('test testowy', '/../Static/private_key.pem');
}
这是钥匙的问题。我需要生成一个新的