Re: gpg encryption failed no public key
Hi, On 12.03.2010 07:11, nagaram.c wrote: Thanks for the response, the command gpg --recepient testuserID --encrypt abc.txt I used has double dashes still I gives the same error. I think I am using the default keyring as I didn't change its location try using the --homedir path_to_your_keyring option Thanks, Nag Greetings Florian -Original Message- From: gnupg-users-boun...@gnupg.org [mailto:gnupg-users-boun...@gnupg.org] On Behalf Of Grant Olson Sent: Thursday, March 11, 2010 12:24 PM To: gnupg-users@gnupg.org Subject: Re: gpg encryption failed no public key On 3/11/2010 7:52 AM, nagaram.c wrote: Hi, I am new to gpg command line utility for file encryption/decryption. I have installed gpg4win v 2.0.2 trying to encrypt a file with a key that I imported which is also listing while typing list-keys command The issue is that I am getting encryption failed no public key while typing in the below command gpg -recipient testUserID -encrypt abc.txt In one of the posts I found that this is due to not specifying keyring location with using -keyring option But while I used below command with specifying keyring as below gpg -recipient testIUserID -keyring C:/Documents Settings/username/Application Data/gnupg/pubring.gpg -encrypt abc.txt I am getting below error gpg: keyblock resource 'C:/Documents Settings/username/Application Data/gnupg/C:/Documents' no such file or directory usage: gpg [options] [filename] The first command isn't working because you need to double-dash the options. --recipient and --encrypt. You really shouldn't need the -keyring option if you're using your default keyring. But for the option to work, you would need quotes around the filename since it has spaces in it. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
RE: gpg encryption failed no public key
I figured out the issue Need to sign the key after it is imported. Nag -Original Message- From: gnupg-users-boun...@gnupg.org [mailto:gnupg-users-boun...@gnupg.org] On Behalf Of Florian Schwind Sent: Friday, March 12, 2010 2:38 AM To: gnupg-users@gnupg.org Subject: Re: gpg encryption failed no public key Hi, On 12.03.2010 07:11, nagaram.c wrote: Thanks for the response, the command gpg --recepient testuserID --encrypt abc.txt I used has double dashes still I gives the same error. I think I am using the default keyring as I didn't change its location try using the --homedir path_to_your_keyring option Thanks, Nag Greetings Florian -Original Message- From: gnupg-users-boun...@gnupg.org [mailto:gnupg-users-boun...@gnupg.org] On Behalf Of Grant Olson Sent: Thursday, March 11, 2010 12:24 PM To: gnupg-users@gnupg.org Subject: Re: gpg encryption failed no public key On 3/11/2010 7:52 AM, nagaram.c wrote: Hi, I am new to gpg command line utility for file encryption/decryption. I have installed gpg4win v 2.0.2 trying to encrypt a file with a key that I imported which is also listing while typing list-keys command The issue is that I am getting encryption failed no public key while typing in the below command gpg -recipient testUserID -encrypt abc.txt In one of the posts I found that this is due to not specifying keyring location with using -keyring option But while I used below command with specifying keyring as below gpg -recipient testIUserID -keyring C:/Documents Settings/username/Application Data/gnupg/pubring.gpg -encrypt abc.txt I am getting below error gpg: keyblock resource 'C:/Documents Settings/username/Application Data/gnupg/C:/Documents' no such file or directory usage: gpg [options] [filename] The first command isn't working because you need to double-dash the options. --recipient and --encrypt. You really shouldn't need the -keyring option if you're using your default keyring. But for the option to work, you would need quotes around the filename since it has spaces in it. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpg encryption failed no public key
On 3/12/2010 8:19 AM, nagaram.c wrote: I figured out the issue Need to sign the key after it is imported. Nag You shouldn't need to sign the key. It should give you a warning but let you encrypt it anyway: 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) Signing will remove that warning, but you don't need to sign every single key you import to use encryption. signature.asc Description: OpenPGP digital signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpg encryption failed no public key
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Grant Olson escribió: ... 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) Signing will remove that warning, but you don't need to sign every single key you import to use encryption. IIRC, some GUIs don't provide that confirmation, and reject the key, so maybe it would be a good idea to issue a local signature. Also, it helps to distinguish between a key you have checked, and new keys that may have been created by Eve. Best Regards -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJLmsHuAAoJEMV4f6PvczxAT3cIAJVnvF8fI+WWqXrtkJXur46w tkmnPrMWgB4ejJNgAKLiG7AE216GC/268pV593TXRydQe3OWAjR90bp5XcUPaH+B sxZ8139xuEI6IEu77l0uj7dtJ43FCKhhWrLdrPVx9NpvhhV2Th1odtdJiuMoxlgg 787x4fRH5cGfYHhA7fIOJ/Yqv9QgUdnMX7UMK/JcFITzRjHzDnPpYNTYXNAk1IWz t9u7WhR/MKtbPeHc3j4H2qNgr8lzJ5TRCgzC6EzrfimfYmFITM4tcUNPyNuRZBc5 Z3ZtvS5y3OIS9YnztClpyEhozLbW4qzTb9RQAXzpCnfSMtS3PMMeBUrzie6WDfQ= =V+Em -END PGP SIGNATURE- ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpg encryption failed no public key
On 3/11/2010 7:52 AM, nagaram.c wrote: Hi, I am new to gpg command line utility for file encryption/decryption. I have installed gpg4win v 2.0.2 trying to encrypt a file with a key that I imported which is also listing while typing list-keys command The issue is that I am getting encryption failed no public key while typing in the below command gpg –recipient testUserID –encrypt abc.txt In one of the posts I found that this is due to not specifying keyring location with using –keyring option But while I used below command with specifying keyring as below gpg –recipient testIUserID –keyring C:/Documents Settings/username/Application Data/gnupg/pubring.gpg –encrypt abc.txt I am getting below error gpg: keyblock resource ‘C:/Documents Settings/username/Application Data/gnupg/C:/Documents’ no such file or directory usage: gpg [options] [filename] The first command isn't working because you need to double-dash the options. --recipient and --encrypt. You really shouldn't need the -keyring option if you're using your default keyring. But for the option to work, you would need quotes around the filename since it has spaces in it. signature.asc Description: OpenPGP digital signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
RE: gpg encryption failed no public key
Thanks for the response, the command gpg --recepient testuserID --encrypt abc.txt I used has double dashes still I gives the same error. I think I am using the default keyring as I didn't change its location Thanks, Nag -Original Message- From: gnupg-users-boun...@gnupg.org [mailto:gnupg-users-boun...@gnupg.org] On Behalf Of Grant Olson Sent: Thursday, March 11, 2010 12:24 PM To: gnupg-users@gnupg.org Subject: Re: gpg encryption failed no public key On 3/11/2010 7:52 AM, nagaram.c wrote: Hi, I am new to gpg command line utility for file encryption/decryption. I have installed gpg4win v 2.0.2 trying to encrypt a file with a key that I imported which is also listing while typing list-keys command The issue is that I am getting encryption failed no public key while typing in the below command gpg -recipient testUserID -encrypt abc.txt In one of the posts I found that this is due to not specifying keyring location with using -keyring option But while I used below command with specifying keyring as below gpg -recipient testIUserID -keyring C:/Documents Settings/username/Application Data/gnupg/pubring.gpg -encrypt abc.txt I am getting below error gpg: keyblock resource 'C:/Documents Settings/username/Application Data/gnupg/C:/Documents' no such file or directory usage: gpg [options] [filename] The first command isn't working because you need to double-dash the options. --recipient and --encrypt. You really shouldn't need the -keyring option if you're using your default keyring. But for the option to work, you would need quotes around the filename since it has spaces in it. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users