Dec 14, 2002, 4:32 AM
Post #1 of 2
how to delete a GnuPG secret key
I am not an advanced perl programmer ,(I usually use php) , however I am posting here because perhaps this problem could be solved only from someone with perl experience .
I need to know if it's possible to delete a GnuPG secret key
using some line of perl code . Someone wrote me that there is some perl module to do that ...
I am searching help here because with php I was able to create a script to create/edit or list gnuPG keys (public and private) but I was not able to delete secret keys with php.
Just to know, with php I was using this to try to delete a secret key
`/usr/bin/gpg --no-secmem-warning --home /home/test/.gnupg --yes --yes --delete-secret-key 'B209E218' > /dev/null`;
$lookup = ob_get_contents();
$delete = getDELETEPRIVATE();
Unluckly this script generate a /dev/tty error , and I was not able to find a solution .
So my question is .., with perl is it possible to delete a GnuPG secret key
using some line of perl code . Any idea to do that ?