gpg encryption problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Mar 12, 2006 at 08:35:42AM -0500, ryan enlightened us:
> Whenever I try to use gpg to encrypt a single file on CentOS 4.2, I get the 
> below error:
> 
> /root/.gnupg/.#lk0x56a998.localhost.localdomain.19548': No such file or 
> directory
> gpg: keyblock resource `/root/.gnupg/secring.gpg': general error
> gpg: failed to create temporary file 
> `/root/.gnupg/.#lk0x56aca8.localhost.localdomain.19548': No such file or 
> directory
> gpg: keyblock resource `/root/.gnupg/pubring.gpg': general error
> gpg: no default secret key: secret key not available
> gpg: /home/ra/Desktop/zoo001.jpg: sign+encrypt failed: secret key not 
> available
> 
> 
> It happens for normal and root users. 
> 
> 
> Does anyone know what I am doing wrong? I've tried "gpg -e [filename]" and 
> numerous other flags...
> 

Have you generated a private key? (hint: gpg --genkey)

Also, I seem to remember gpg not creating the .gnupg directory on its own,
so you might want to create one with pretty strict permissions (700) since
that's where the private key is stored.

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux