Re: Passphrase on the command line

2006-03-22 Thread Daniel Carrera
Stef Caunter wrote: The documentation does not recommend this. Since you appear to not want to store the ciphertext but the plaintext, an encrypted network transfer seems appropriate and less expensive. Write the backup to an ssh pipe instead of a temporary file. Is there any documentation o

Passphrase on the command line

2006-03-22 Thread Daniel Carrera
Hello, This should be a simple question. What is the recommended way to decrypt a file from a script that runs on a cron job? This is what I have so far: cat passphrase | gpg -o MyData --passphrase-fd 0 -d MyData.asc Where 'passphrase' has the chmod permission 400. Is this the best option?

Force GPG to write a file?

2006-03-22 Thread Daniel Carrera
Hi all, Last question :) By default, gpg will refuse to write to a file (myfile.gpg) that already exists. Is there a way to change this behaviour? I am running gpg on batch mode on a server to encrypt a database before downloading. So I need to temporarily store the encrypted file on the ser

Re: Error: "unusable public key"

2006-03-22 Thread Daniel Carrera
Alphax wrote: You haven't specified that the key is trusted in the local trustdb. Thanks! That did it. For some reason my gpg on the server didn't like the --trust-model option ("invalid option") either on the command line or in gpg.conf. But I updated the trustdb and that worked. Cheers, D

Error: "unusable public key"

2006-03-21 Thread Daniel Carrera
.gnupg directory and pubring.gpg is there and has a non-zero size. When I do a --list-keys on the server I see my public key there: /path/to/.gnupg/pubring.gpg pub 1024D/42713DE9 2006-03-21 Daniel Carrera <[EMAIL PROTECTED]> sub 204

Re: /dev/tty error

2006-03-21 Thread Daniel Carrera
Werner Koch wrote: This is a Linux box (Red Hat I think). Do you know what this error means? What can I do to fix it? You need to give more information. Yes, but I didn't know what else I should say. Very likely you are running gpg without a TTY associated; I'm running it from a PHP scrip

/dev/tty error

2006-03-21 Thread Daniel Carrera
Hello, I'm trying to use gpg on a remote server (the server has a copy of my public key, a file is encrypted there and my client downloads it by HTTP). I'm getting the following error: gpg: cannot open /dev/tty: No such device or address This is a Linux box (Red Hat I think). Do you know wha

Help: /dev/tty error

2006-03-21 Thread Daniel Carrera
Hello, I'm trying to use gpg on a remote server (the server has a copy of my public key, a file is encrypted there and my client downloads it by HTTP). I'm getting the following error: gpg: cannot open /dev/tty: No such device or address This is a Linux box (Red Hat I think). Do you know what t