gpg crypter un fichier sans interaction du clavier

Je suis en cours d'exécution commande suivante dans un crontab pour crypter un fichier, et je ne veux pas d'une interaction entre le clavier

echo "PASSPHRASE" | gpg --passphrase-fd 0 -r USER --encrypt FILENAME.TXT

mais j'ai cette réponse:

gpg: C042XXXX: There is no assurance this key belongs to the named user

pub  40XXX/C042XXXX 2012-01-11 Name LastName. (comment) <user@email.com>
 Primary key fingerprint: XXXX XXXX XXXX XXXX XXXX  XXXX XXXX XXXX XXXX XXXX
      Subkey fingerprint: XXXX XXXX XXXX XXXX XXXX  XXXX XXXX XXXX XXXX XXXX

It is NOT certain that the key belongs to the person named
in the user ID.  If you *really* know what you are doing,
you may answer the next question with yes.

Use this key anyway? (y/N) 
  • Depuis --passphrase-fd lit à la première ligne... ce qui se produit si vous exécutez echo -e "PASSPHRASE" "\nyes" | gpg --passphrase-fd 0 -r USER --encrypt FILENAME.TXT ?
  • page de manuel de quelqu'un? --batch et --yes.
InformationsquelleAutor coto | 2012-02-27