CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
how to delete a GnuPG secret key

 



graziano68
Novice

Dec 14, 2002, 4:32 AM

Post #1 of 2 (834 views)
how to delete a GnuPG secret key Can't Post

Hello ,

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

========
<?

function getDELETEPRIVATE()
{
ob_start();

`/usr/bin/gpg --no-secmem-warning --home /home/test/.gnupg --yes --yes --delete-secret-key 'B209E218' > /dev/null`;

echo"<pre>";
$lookup = ob_get_contents();
ob_end_clean();
return $lookup;
}

$delete = getDELETEPRIVATE();
echo "<pre>$delete</pre>";

?>
========

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 ?

Thank you
Graz


graziano68
Novice

Dec 15, 2002, 8:37 AM

Post #2 of 2 (821 views)
Re: [graziano68] how to delete a GnuPG secret key [In reply to] Can't Post

Anyone ?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives