troubleshooting Question

gpp (pgp) scripted processing, key without recipent email address

Avatar of Martin Miller
Martin MillerFlag for United States of America asked on
LinuxEncryption
6 Comments1 Solution619 ViewsLast Modified:
This first line work fine in my script as the key have a email in the -- recipient
----------
gpg --homedir /root/.gnupg --batch --no-tty --recipient prod2@ourcomp.com  -o $f.enc -e $f

----------
This next command requires a user to confirm and does not work in my script... it works with user intervention in command line, not in my bash script called in cron
-----------------
gpg --homedir /root/.gnupg --batch --no-tty --recipient OurCompany  -o $f.enc -e $f

---- here is out put of link above run directly in command line ... - ----
gpg  --encrypt --recipient OurCompany  -o Testing_02012012.txt.enc  Testing_02012012.txt
gpg: 87F19A87: There is no assurance this key belongs to the named user

pub  2048R/87F19A87 2001-10-19 OurCompany  (336-658-4000)
 Primary key fingerprint: 29 51 7C 97 FD 77 50 2F  83 B0 51 B3 F5 18 2A A2

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)
-----------
Below are my keys in the ring
---------------

# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub   1024R/C9G50CC7 2008-02-11 [expires: 2013-02-10]
uid                  Our Companies Inc <prod2@ourcomp.com>

pub   2048R/B7F19A87 2001-10-19
uid                  OurCompany (336-658-4000)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros