Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 11-01-2013, 02:56 AM   #1
LQ Newbie
Registered: Aug 2009
Location: HYD,India
Distribution: RHEL
Posts: 19

Rep: Reputation: 0
gpg automated encryption not working


I am trying to automate gpg encryption as below. But It doesn't seem to work for some reason.

[user1@host1]$gpg -e -r 17346DBD --yes --batch -o evish.txt vish.txt
gpg: 0302D795: There is no assurance this key belongs to the named user
gpg: vish.txt: encryption failed: unusable public key
Any help is greatly appreciated
Old 11-02-2013, 04:54 PM   #2
Senior Member
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 276Reputation: 276Reputation: 276
It says the public key is unusable, and unverified. You need to get a new key.
Old 11-02-2013, 10:09 PM   #3
Senior Member
Registered: Nov 2005
Distribution: Arch
Posts: 3,093

Rep: Reputation: 1273Reputation: 1273Reputation: 1273Reputation: 1273Reputation: 1273Reputation: 1273Reputation: 1273Reputation: 1273Reputation: 1273
I think you just need to set the key as trusted (I'm assuming you really do know that the key is okay to trust), see Importing a public key and Validating other keys on your public keyring.


encryption, gpg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Automated gpg Key Trust mstone0802 Linux - Security 6 04-26-2011 12:33 PM
Encryption with openssl and gpg szim90 Linux - Security 1 10-22-2007 03:13 PM
which encryption should I use, gpg? Melsync Linux - Security 4 07-06-2006 05:26 AM
gpg filename encryption ??? rino.caldelli Linux - Security 2 02-26-2006 06:34 AM
gpg / pgp encryption pteren Linux - Software 8 07-26-2003 03:14 AM

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration