Jump to content

prblem in generating gpg signed file from php


anturkarajay1

Recommended Posts

Hi,

I am trying to generate gpg signed file using php with following code line

 

system("/usr/bin/gpg -u <UID> --passphrase-file pf.txt --clearsign --force-v3-sigs /home/planet/public_html/msg2.txt");

 

it is not creating the gpg signed file msg2.txt.asc

 

but when I try directly from command prompt it generate the msg2.txt.asc file

 

the error recorded by the apache error log is

gpg: /home/planet/public_html/msg2.asc: clearsign failed: secret key not available

 

Please help me in this matter.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.