RE: GnuGP Error
What is the error? Subject: GnuGP Error To: Gnupg-users@gnupg.org From: bshadl...@hertz.com Date: Thu, 7 Apr 2011 15:25:28 +1300 Hi there, We are using GnuGP 1.1.3 on a few PCs, all able to decrypt using 1 public key. I can use it on my PC, but a new user on a new PC is getting constant errors. I've installed the SW, imported the correct and only key, but still get the error. If I log in to the new PC, I get the same error. I've uninstalled the SW, removed all associated folders and files, installed the SW again, and still the same error. Any suggestions? Regards, Bronson Shadlock Systems Administrator Hertz New Zealand Ltd 801 Wairakei Road Christchurch 8053 New Zealand Ph: 64 3 358 6747 Fax: 64 3 358 6756 Email: bshadl...@hertz.com --- This message (including attachments) may contain information that is privileged, confidential or protected from disclosure. If you are not the intended recipient, you are hereby notified that dissemination, disclosure, copying, distribution or use of this message or any information contained in it is strictly prohibited. If you have received this message in error, please immediately notify the sender by reply e-mail and delete this message from your computer. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. --- ___ 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-zip : passphrase as parameter for scripts
Take the space out between the password and the pipe I.E. echo password| gpg-zip Date: Mon, 4 Apr 2011 03:02:08 -0700 From: arno.stef...@googlemail.com To: gnupg-users@gnupg.org Subject: gpg-zip : passphrase as parameter for scripts I am using in a script, with more than one of this kind of lines: #!/bin/sh /usr/local/bin/gpg-zip -o /opt/u1.tar.gpg -s /opt/1* /usr/local/bin/gpg-zip -o /opt/u2.tar.gpg -s /opt/2* ... I have to answer every line with question for passphrase. This sucks. I have seen there is a parameter --gpg-args where I can pass args to gpg. But I don't get this working with some kind of echo 'passphrase' | gpg-zip --gpg-args --passphrase-fd -o ... - s Anybody an idea how this is working? Best regards Arno -- View this message in context: http://old.nabble.com/gpg-zip-%3A-passphrase-as-parameter-for-scripts-tp31312954p31312954.html Sent from the GnuPG - User mailing list archive at Nabble.com. ___ 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-zip : passphrase as parameter for scripts
i dont know of this command --gpg-args, and by the looks of it, neither does GPG (that's what the errors telling you) echo passphrase| gpg-zip --gpg-args --passphrase-fd -o test.gpg -s The line should be echo passphrase| gpg-zip --gpg-args --passphrase-fd 0 I also dont know of gpg-zip, and neither does GPG, thats what the error is telling you. Date: Mon, 4 Apr 2011 16:43:08 +0200 Subject: Re: gpg-zip : passphrase as parameter for scripts From: arno.stef...@googlemail.com To: l_elco...@hotmail.co.uk 2011/4/4 Lee Elcocks l_elco...@hotmail.co.uk: Try also using --batch when automating. Date: Mon, 4 Apr 2011 03:02:08 -0700 From: arno.stef...@googlemail.com To: gnupg-users@gnupg.org Subject: gpg-zip : passphrase as parameter for scripts I am using in a script, with more than one of this kind of lines: #!/bin/sh /usr/local/bin/gpg-zip -o /opt/u1.tar.gpg -s /opt/1* /usr/local/bin/gpg-zip -o /opt/u2.tar.gpg -s /opt/2* ... I have to answer every line with question for passphrase. This sucks. I have seen there is a parameter --gpg-args where I can pass args to gpg. But I don't get this working with some kind of echo 'passphrase' | gpg-zip --gpg-args --passphrase-fd -o ... - s Anybody an idea how this is working? Best regards Arno -- View this message in context: http://old.nabble.com/gpg-zip-%3A-passphrase-as-parameter-for-scripts-tp31312954p31312954.html Sent from the GnuPG - User mailing list archive at Nabble.com. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users This all doesn't seems to help: $echo passphrase| gpg-zip -o test.gpg -s comp_prod_build.sh --gpg-args --passphrase-fd 0 /bin/tar: Unknown Option „--gpg-args“ „tar --help“ oder „tar --usage“ gives further Informationen. $echo passphrase| gpg-zip --gpg-args --passphrase-fd -o test.gpg -s comp_prod_build.sh Reading passphrase from file descriptor 0 Call: gpg [Optionen] [Dateiname] $ echo SensoPart| gpg-zip --gpg-args --passphrase-fd 0 -o test.gpg -s * Usage: gpg-zip [--help] [--version] [--encrypt] [--decrypt] [--symmetric] [--list-archive] [--output FILE] [--gpg GPG] [--gpg-args ARGS] [--tar TAR] [--tar-args ARGS] filename1 [filename2, ...] directory1 [directory2, ...] Encrypt or sign files into an archive. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Hi
hi it's in your best interests to start this right away http://bit.ly/gntBne ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
RE: Hi
Im sorry, this email was not sent by me, ive been hacked should not happen again (fingers crossed) apologies to all Lee Date: Thu, 31 Mar 2011 07:25:00 -0400 From: thaj...@gmail.com To: l_elco...@hotmail.co.uk CC: gnupg-users@gnupg.org Subject: Re: Hi The first spammer I have seen thus far. Did not know they existed here. On 31/03/2011 10:27 AM, Lee Elcocks wrote: hi it's in your best interests to start this right away http://bit.ly/gntBne ___ 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: empty file generated when running GPG batch
Your out put should look like this. C:\encryptedfiles\%%F.pgp %%F From: jer...@jeromebaum.com To: johnathan.barb...@elephant.com Subject: Re: empty file generated when running GPG batch Date: Thu, 24 Mar 2011 10:53:23 + CC: gnupg-users@gnupg.org jb johnathan.barb...@elephant.com writes: Hi, this is running in a batch. It creates a .pgp file, however that file is empty. Any ideas? SETLOCAL PATH=C:\Program Files\GNU\GnuPG;c:\encryptedfiles;c:\outgoingdropfolder;%PATH% %TMP%\~encryptlist.txt DIR /B C:\outgoingdropfolder PUSHD C:\outgoingdropfolder pause FOR /F delims= %%F IN ('MORE ^ %TMP%\~encryptlist.txt') DO ( pause IF EXIST %%F ( pause ECHO Password|GPG --batch --encrypt --passphrase-fd 0 -r Publickey -o C:\encryptedfiles\%%F.pgp pause IF ERRORLEVEL == 0 DEL %%F ) ) POPD DEL %TMP%\~encryptlist.* ENDLOCAL What does it output? Also, sure you want to echo in the password? Seems like it's not necessary. -- PGP: A0E4 B2D4 94E6 20EE 85BA E45B 63E4 2BD8 C58C 753A PGP: 2C23 EBFF DF1A 840D 2351 F5F5 F25B A03F 2152 36DA ___ 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: How can I drop a file for encryption on the GPA FileManager
Good Luck with GPG4win, i cannot find any decent documentation on how to use! and get no reply's from the GPG4Win mailing lists either. You can't sign and encrypt a file at the same time either through the command line so i had to abort and go back to PGP. Really annoyed i waisted my time on this. To: gnupg-users@gnupg.org From: bo.bergl...@gmail.com Subject: How can I drop a file for encryption on the GPA FileManager Date: Mon, 22 Nov 2010 19:52:44 +0100 I have now installed Gpg4Win 2.0.4 on a Win7X64 machine where I previously had installed GnuPg 1.4.11. I first uninstalled GnuPG. My problem now is how to actually encrypt files when the Explorer pop-up menu is missing It would be OK if there was a way to start the GPA FileManager with a file path on the command line. Then I could add a manual entry in the Registry that would invoke the proper exe file with the selected file as the argument. I hope that the File Manager would show up with my file in the list of files to process. But I need to know which executable to start and what command line arguments to use. Can someone please enlight me on this? -- Bo Berglund Developer in Sweden ___ 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
GPG4WIN
Hi Couple of questions if i can about GPG4Win? I need to import .p12 files, how do i do this via the command line Do i need to make config changes somewhere? Can i automate GPG2 like i could GPG? Can i make a config file and load extension IDEA.dll so that it can use IDEA algorithm? Are the command switches and options the same as GPG but with a 2? (GPG2) Thankyou ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
RE: Import .p12 key file
I use GPG version 1.4.10 is this one of the verrsions that *can* support pkcs12 keys? If so, How? Lee From: w...@gnupg.org To: r...@sixdemonbag.org Subject: Re: Import .p12 key file Date: Wed, 10 Nov 2010 19:29:51 +0100 CC: gnupg-users@gnupg.org On Wed, 10 Nov 2010 18:37, r...@sixdemonbag.org said: Recent versions of GnuPG support S/MIME, which *may* use PKCS-12. (I Well for 7 years or so ;-) don't recall offhand for a fact: I just have a vague impression they do... or maybe it's PKCS-7 I'm thinking of.) PKCS#12 is a bunch of convoluted binary data which is even by ASN.1 standards a nightmare to parse. Despite that these blobs are used to transfer private X.509 keys. GPGSM (GPG's S/MIME cousin) supports it. PKCS#7 (or in modern speak CMS) is the core of S/MIME but, as you pointed out, it is not related to OpenPGP. OpenPGP uses a well defined and easy to parse format for key and data exchange and not any ASN.1 BER and DER mess. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ 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
FW: Import .p12 key file
if i import a p12 key file into a trial version of PGP and then export the key back out (including the private key) i can then import the key into GPG. PGP exports the key as a .ASC file. As a newb, can someone explain what PGP does to the key so that GPG accepts it? Thanks From: l_elco...@hotmail.co.uk To: w...@gnupg.org; r...@sixdemonbag.org Subject: RE: Import .p12 key file Date: Thu, 11 Nov 2010 14:12:15 + CC: gnupg-users@gnupg.org I use GPG version 1.4.10 is this one of the verrsions that *can* support pkcs12 keys? If so, How? Lee From: w...@gnupg.org To: r...@sixdemonbag.org Subject: Re: Import .p12 key file Date: Wed, 10 Nov 2010 19:29:51 +0100 CC: gnupg-users@gnupg.org On Wed, 10 Nov 2010 18:37, r...@sixdemonbag.org said: Recent versions of GnuPG support S/MIME, which *may* use PKCS-12. (I Well for 7 years or so ;-) don't recall offhand for a fact: I just have a vague impression they do... or maybe it's PKCS-7 I'm thinking of.) PKCS#12 is a bunch of convoluted binary data which is even by ASN.1 standards a nightmare to parse. Despite that these blobs are used to transfer private X.509 keys. GPGSM (GPG's S/MIME cousin) supports it. PKCS#7 (or in modern speak CMS) is the core of S/MIME but, as you pointed out, it is not related to OpenPGP. OpenPGP uses a well defined and easy to parse format for key and data exchange and not any ASN.1 BER and DER mess. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ 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 ___ 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
Import .p12 key file
Hi I want to be able to import our private keys into GPG. Our keys are .p12 files but this doesnt seem to work. Is their a way to get these .p12 key files into GPG? if so, what is the command? Many thanks for any help. Lee ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Scripting
Hello all. This is my last resort. I know that this is not the realy the correct place to pose such a question. I have now succesfully set up a fully automated GPG solution, with the help of all of you on this list. However my next task is to intergrate the scripts with GPG with WINSCP. basically i want to do this. Auto encrypted files end up in a folder called C:\encryptedfiles then the WINSCP script will run and look at the files in the above folder, collect the file names into a temporary text file, and SFTP them over to a remote server. My question is does anybody on this list have any knowledge of WINSCP scripting? Ive had a look at the help pages on the website and cannot for the life of me figure them out! PS I'm willing to pay! ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
RE: Scripting
Im really sorry, i need this in simple terms. Putty command line looks alot better though! this is the script i intend to use SETLOCAL C:\Program Files\putty %TMP%\~ftplist.txt DIR /B C:\encryptedfiles PUSHD C:\encryptedfiles FOR /F delims= %%F IN ('MORE ^ %TMP%\~ftplist.txt') DO ( IF EXIST %%F ( MY PUTTY COMMAND GOES HERE IF ERRORLEVEL == 0 DEL %%F ) ) POPD DEL %TMP%\~encryptlist.txt ENDLOCAL I suppose what im asking is, please could you give the command, by the way does putty support SFTP with TLS authentication? Subject: Re: Scripting From: reid.thomp...@ateb.com To: l_elco...@hotmail.co.uk CC: reid.thomp...@ateb.com Date: Tue, 12 Oct 2010 08:45:46 -0400 On Tue, 2010-10-12 at 11:46 +0100, Lee Elcocks wrote: Hello all. This is my last resort. I know that this is not the realy the correct place to pose such a question. I have now succesfully set up a fully automated GPG solution, with the help of all of you on this list. However my next task is to intergrate the scripts with GPG with WINSCP. basically i want to do this. Auto encrypted files end up in a folder called C:\encryptedfiles then the WINSCP script will run and look at the files in the above folder, collect the file names into a temporary text file, and SFTP them over to a remote server. My question is does anybody on this list have any knowledge of WINSCP scripting? Ive had a look at the help pages on the website and cannot for the life of me figure them out! PS I'm willing to pay! ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users use the putty tools... pscp.exe ... with an ssh passwordless keypair schedule a task to call a bat file with something like this \path\to\pscp.exe -q -i \path\to\private-key.ppk \path\to\pattern_match_for_files remote_host_use...@remote_host.domain.com:/path/to/folder/to/put/files/in ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
RE: batch file automation -Nearly There!
Hi, I have the signing key as the default key in the config file, do i still have to use both in the command, the encyption and signing is working perfectly, just the output of the file name (and size) that i cannot get to work. Im really sorry, ell explain what i need the script to be able to do User can drop any files into drop folder for example lee.txt and the out put of the file will be lee.txt.pgp also if their was more than one file in their, lee.txt and test.xls the out put would be lee.txt.pgp and test.xls.pgp So with that , will the below script work? To: l_elco...@hotmail.co.uk Subject: Re: batch file automation -Nearly There! From: n...@example.com Date: Fri, 8 Oct 2010 02:16:49 +0200 -r = Recipient = Key to Encrypt -u = Signator = Key to Sign Use Both! In batch Variable needs Double Percent (%%) SETLOCAL PATH=C:\Program Files (x86)\GNU\GnuPG;%PATH% %TMP%\~encryptlist.txt DIR /B C:\OutgoingDropFolder PUSHD C:\outgoingdropfolder FOR /F delims= %%F IN ('MORE ^ %TMP%\~encryptlist.txt') DO ( IF EXIST %%F ( ECHO bingos| GPG --batch -se --passphrase-fd 0 -r PGPTOKEY -u PGPTOKEY -o C:\EncryptedFiles\%%F.pgp IF ERRORLEVEL == 0 DEL %%F ) ) POPD DEL %TMP%\~encryptlist.txt ENDLOCAL ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
gnu automatic decryption
SETLOCAL PATH=C:\Program Files (x86)\GNU\GnuPG;%PATH% %TMP%\~decryptlist.txt DIR /B C:\decrypt_here PUSHD C:\decrypt_here FOR /F delims= %%F IN ('MORE ^ %TMP%\~decryptlist.txt') DO ( IF EXIST %%F ( ECHO bingos| GPG --batch --yes --passphrase-fd 0 --decrypt-files *.pgp -o C:\decryptedfiles\%%F %%F IF ERRORLEVEL == 0 DEL %%F ) ) POPD DEL %TMP%\~decryptlist.txt ENDLOCAL Hello Ive have managed to get encryption working nicely, now im trying to automate the decryption, this is what happens when i run the above. Files are droped into the decrypt here folder, batch is run, the files decrypt, but stay in the same folder?? they do not get output to the decryptedfiles folder?? where has it gone wrong? Many thanks ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
batch file automation -Nearly There!
SETLOCAL PATH=C:\Program Files (x86)\GNU\GnuPG;%PATH% %TMP%\~encryptlist.txt DIR /B C:\outgoingdropfolder PUSHD C:\outgoingdropfolder FOR /F delims= %%F IN ('MORE ^ %TMP%\~encryptlist.txt') DO ( IF EXIST %%F ( ECHO bingos| GPG --batch -se --passphrase-fd 0 -r PGPTOKEY -o C:\encryptedfiles\%F.pgp IF ERRORLEVEL == 0 DEL %%F ) ) POPD DEL %TMP%\~encryptlist.txt ENDLOCAL above is the script im using to try and automate GPG (bingos is not my real password) the above is working sort off let me explain what i want it to do a User can drop any type of file, called anything they like into the dropfolder, when the batch runs, i want the file (or files) to be encrypted (all with the same encryption and signing key) and then outputted to the folder called encrypted files, the file names must be the same as they were when they went in, except obviousley the new pgp extension. (i require the output to be a PGP extension) This is what happens when i run the above batch. I drop a file called lee.txt (10mb) into dropfolder, run the batch, the file dissapears from drop folder, and appears in the encypted files folder with the file name f.PGP ? and is only 1kb in size ? the encryptlist.txt appears to be working fine. Im hoping that it will be able to handle more than one file ( I asume that is what the encrypt list is for ? ) however im unable to confirm as the files are becoming over written when they get to encrypted folder. If i drop 2 files at the same time then the encrypted list does pick up 2 different file names. I can confirm that encyption and signing is working as it should, i can suucesfully decypt and verify signature using PGP, (but like i said, the file is empty) Hope ive explained clearly enough, thanks to all that have helped me get to this stage. Lee ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
encryption automation
Hello all I am trying to automate gnupg and im really struggling with the batch file in trying to use, please could somebody help me? for test purposes i have created a drop folder in the root of C: C:\outgoingdropfolder i want to be able to drop any type of file in here with any file name, GPG to encrypt the file and place the encrypted version of that file in another location (for test purposes this is C:\encryptedfolder) this is the command ive placed into a batch cd C:\program files (x86)\gnu\gnupg gpg --batch --yes --output C:\encryptedfiles\*.gpg -e -u leeelcockstokey -r leeelcocksfromkey C:\outgoingdropfolder\* What i need the automation to do is the following for example I drop the file lee.txt into drop folder, GPG then encrypts it and places into encrypted files folder called lee.txt.gpg I have the batch running every minute on windows scheduler. I want to drop any file into the drop folder and GPG to output the encyrpted file with the same name. The file names will be different everytime. Any help with this greatly appreciated Lee Elcocks ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
[no subject]
Hello all I am trying to automate gnupg and im really struggling with the batch file in trying to use, please could somebody help me? for test purposes i have created a drop folder in the root of C: C:\outgoingdropfolder i want to be able to drop any type of file in here with any file name, GPG to encrypt the file and place the encrypted version of that file in another location (for test purposes this is C:\encryptedfolder) this is the command ive placed into a batch cd C:\program files (x86)\gnu\gnupg gpg --batch --yes --output C:\encryptedfiles\*.gpg -e -u leeelcockstokey -r leeelcocksfromkey C:\outgoingdropfolder\* What i need the automation to do is the following for example I drop the file lee.txt into drop folder, GPG then encrypts it and places into encrypted files folder called lee.txt.gpg I have the batch running every minute on windows scheduler. I want to drop any file into the drop folder and GPG to output the encyrpted file with the same name. The file names will be different everytime. Any help with this greatly appreciated Lee Elcocks ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
schedule batch file
Hello I have installed GNUGP 1.4.10 installed on windows XP. I need to create a script that will allow me to do the following. Create a 'drop folder' in a directory, where any files dropped in that location will be encrypted and signed with the same keys. Create a 'decrpted' folder where any encyrpted files that are dropped to this location are decypted using the same keys. The keys will have passphrases on them, i need to automate this also so their is no human interaction. I plan to schedule the batch files using XP scheduler Any help, and i mean any help at all would be greatly appreciated! Many Thanks Lee ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users