File extension is .txt for gpg import. Is that ok?
Hi Gnupg Users, I have question that on of the user gave a file to import and the file is having .txt extension, for example test.txt. I usually import files having .asc or .gpg extensions. Can I do gpg --import test.txt with that .txt file extension? Thank you, Anil. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: File extension is .txt for gpg import. Is that ok?
On 06/13/2013 03:20 AM, Anilkumar Padmaraju wrote: Hi Gnupg Users, I have question that on of the user gave a file to import and the file is having .txt extension, for example test.txt. I usually import files having .asc or .gpg extensions. Can I do gpg --import test.txt with that .txt file extension? If it has -BEGIN PGP PUBLIC KEY BLOCK- on the first line you will probably be fine on 'nix since gpg and gpg2 look at what is in the file to determine if it is safe to do a --import or not. There is one caveat here. On OpenSuSE it refuses to do the following assuming the file Picture. is actually an image file: $ eog Picture. Will fail. They have made it so eog and many other utilities will fail unless you have have the proper extension. For this one, if Picture. is jpg file, even this rename $ mv Picture. Picture.gif $ eog Picture.gif will still fail. Ergo, you should probably make sure the file has the proper extension. It takes just a few seconds to do it. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Clarifying the GnuPG License
On Wed, Jun 12, 2013 at 11:49:39AM +0200, Nils Faerber wrote: IANAL but from my understanding: 1. by invocation of the commandline commands: Yes 2. invocation of GnuPG exe: Yes 3. Linking, dynamically or statically, against a GnuPG DLL, presumed that it is licensed under GPL: No IANAL either, but wonder whether hard-coding the GPG program name and arguments in your binary would not be sufficient to consider your program as linked to the GPG executable. This would mean the program would be bound by the GPL terms. But, again, this is only a supposition, and you should get proper legal advice. Cheers, Leo ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Fail-safe backup
I just answered a question on whether you could import somebody else's keys from a file named other.txt rather than other.asc or other.gpg. While perhaps technically correct I also pointed out that Windows depends on the proper file-name extension and some Linux distros like OpenSuSE are very persnickety about the file having the proper extension. If you are going into the unknown make a backup of your key folder before experimenting. The following in a terminal would be a good idea on 'nix: $ cd ; rm -f gnugp.zip $ zip -r9 gnupg.zip ./.gnupg Now go ahead and experiment to your hearts content. Just be aware that something like OpenSuSE may block an --import unless the file-name is something like other.asc or other.gpg. That doesn't mean any damage will be done with something like other.txt, The shell will just refuse to let gpg / gpg2 do anything. But if you do damage or think you damaged your key-ring, the old fail-safe can always be put back: $ cd # # if you are unsure if you damanged keys $ rm -fr zzz.gnupg $ mv .gnupg zzz.gnupg # # or if you are POSITIVE you killed things: $ rm -fr .gnupg # then put the fail-safe back in place $ unzip gnupg.zip If nothing else you have a backup of your keys in case of files being damaged due to power failure, et al. But you never want to take steps into the unknown without a way to go back to something that works. If you don't believe me, watch the movie The Eiger Santion some time. Karl Freytag said: I consider it self defeating to plan in terms of retreat. Hemlock replied I consider it stupid not to. The ending of the movie drives the point home in a very dramatic manner despite one of the climbers saying they would continue in style. Sooner or later you think can get away with something and you can't no matter how good you are. When that happens you need some way to recover from the disaster. Now go ahead and gpg --import other.txt. HHH -- Gnome 3, Ubuntu Unity, Windows 8 - poor iPhone GUI on Desktop Thinking has been suspended indefinitely Anybody caught thinking will be immediately shot! signature.asc Description: OpenPGP digital signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users