bonjour
excusez moi d'avance car je risque d'etre bordelique dans mes expliquations
mon but est de crypter un mail avec GPG conntanant les achats fait sur une boutique à l'aide d'un script PHP
j'ai cree fait un gpg --gen-key
mes cles se sont bien presentes /root/.gnupgg,
j' en suis au cryptage du mail avecGPG:
j'ai creér le repertoire /var/www/.gnupg avec les droits 0700
quand je lance le script celui-ci cree les rep /var/www/.gnupg /pubring.gpg et /var/www/.gnupg/secring.gpg seulement ceux ci sont a 0
1/ comment importer des cles (titi,toto,ect) dans /var/www/.gnupg pour que celle ci soyent prise en compte par la commande ou tout autre commande:
/usr/bin/gpg --armor --encrypt --recipient titi@titi.loc $mon_caddie
2/ suite au rajout de --debug-all dans ma commande j'ai eu se msg d'erreur
que veux dire la 1er ligne
gpg: DBG: fd_cache_open (/var/www/.gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-1.0: open `/var/www/.gnupg/pubring.gpg' fd=4
gpg: DBG: iobuf-1.0: underflow: req=8192
gpg: DBG: iobuf-1.0: underflow: got=0 rc=-1
gpg: DBG: /var/www/.gnupg/pubring.gpg: close fd 4
gpg: DBG: fd_cache_close (/var/www/.gnupg/pubring.gpg) new slot created
gpg: DBG: iobuf-1.0: underflow: eof
gpg: DBG: iobuf-1.0: close `(null)'
gpg: gilles@family.loc: skipped: public key not found
gpg: /var/www/faitmain2/tmp/basket_vamYbo: encryption failed: public key not found
random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768
merci a+ gilles pour votre aide