0
Lorsque j'essaie de signer un test utilisant PGP, je n'obtiens aucune signature dans l'erreur de résultat.gnuPGP pgp aucune signature dans le résultat
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');
}