How to delete a secret gnuPG key using a php script ?
David Picón Álvarez
eleuteri@myrealbox.com
Sat Dec 14 10:16:02 2002
--=_8Xl.z1fZ.5XiMkIG0nnxfhpcRy8C.P
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi,
> <?
> exec("/usr/bin/gpg gpg --no-secmem-warning --home
/test/.gnupg --batch --yes
> --delete-secret-key B209E218");
> ?>
I'm not sure how php works, but I think you're passing gpg as an option to
gpg. That's wrong. Try this.
<?
exec("/usr/bin/gpg --no-secmem-warning --home /test/.gnupg --batch --yes
--delete-secret-key B209E218");
?>
Hope this helps,
--David.
--=_8Xl.z1fZ.5XiMkIG0nnxfhpcRy8C.P
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
iQQXAwUAPfr4RYVy4iYQ9LKqFAL83hAAtQHLWndpB+UEEtcErTuKzyJSJ9xHvHnV
44glsi4EjjwCDjR5UiHEvKidN1sEAJ6t5DhvValEcAOqr15Qr3fIqBGmz7ZTLnp/
aGyrbDztGxSIsuLcwfDSCAphoQOmhSrdpumrfggrLJeiK28AIoKBJv1+qgnuwF3p
5Ms/YH+CQqIG8cYIjjbTGI/3bUFALv0yPCOLJqNhcp/L8LAi7rFJqkBFNkTRxE03
w+pl0UbmpRNAd7A6lsa/tnuWaNydREmWzBpasMhmYRtLYG243qNhujD97+NGy8ir
IjfZNV3x3+VHoXi6p+4Ud2ZFph3StvdIrdzN3GznVwVUkon4hdBJ/lx2sLIcHd8F
+vq6EHBsJ9WVPJ1XIVtx5HEgfL9UR1iO+k9c+YPJu6Phm7vZkw4EK+aGyVH5a4rM
ufQ7bsFEPNiinJST96BYDbn99lFsSoPheGm6MGWKfMH3MwFcPVE34+xs0Meu6tPE
MVZGOnHX9s7eCwXYIzqTTg737MTbH0DfSNnl7vOP87ZGlwj5wC/Oi+3mlkZQOPcZ
GK+mLoheTxxedecBTnl5HUP4Gph7LL3PqqsFJjGGlsegio+f4BXykjZ2l2P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