tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/41-how-to-decrypt-or-encrypt-a-folder-of-files-easilyGPGTools: Discussion 2018-10-18T19:52:27Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-22T08:11:31Z2011-11-22T10:53:57Zhow to decrypt or encrypt a folder of files easily<div><p>Hi,<br>
I got a folder of files encrypt by PGP applications from windows
platform, how can I decrypt them on MacOS X?<br>
When I right-click on the file and choose OpenPGP Dcrypt, it hangs
a while and turns out errors like " ..service could not be used
because the application did not response to a request for
services....try reopening "(null)," or contact the vendor for an
updated version"<br>
Decrypt file is fine..<br>
I'm using the latest GPG<br>
thanks!</p></div>Kevintag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-22T14:25:42Z2011-11-22T14:25:42Zhow to decrypt or encrypt a folder of files easily<div><p>Hi Kevin,</p>
<p>Thank you for your feedback.</p>
<blockquote>
<p>" ..service could not be used because the application did not
response to a request for services....try reopening "(null),"</p>
</blockquote>
<p>This might happen when the file is very big. There is a maximum
time a service is allowed to work on a task.</p>
<blockquote>
<p>how can I decrypt them on MacOS X?</p>
</blockquote>
<p>Try using the command line:</p>
<ol>
<li>Open /Applications/Utilities/Terminal.app</li>
<li>gpg -d FILENAME.gpg</li>
</ol>
<p>Does this help?</p></div>Alextag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-28T23:15:20Z2011-11-28T23:15:20Zhow to decrypt or encrypt a folder of files easily<div><p>I have a similar issue. I cannot encrypt from the services menu
in finder. It fails silently.</p></div>Adam Slagelltag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-29T07:26:20Z2011-11-29T07:26:20Zhow to decrypt or encrypt a folder of files easily<div><p>There should be an error message in the Console.app - see
<a href=
"http://support.gpgtools.org/kb/faq/how-can-i-generate-debugging-information">
http://support.gpgtools.org/kb/faq/how-can-i-generate-debugging-inf...</a></p></div>Alextag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-29T15:18:05Z2011-11-29T15:18:05Zhow to decrypt or encrypt a folder of files easily<div><p>Yes. See below.</p>
<p>11/29/11 9:15:43.655 AM GPGServices: encrypting file(s):
/Users/slagell/Downloads/IllinoisNet (1).mobileconfig...<br>
11/29/11 9:15:51.130 AM GPGServices: destination:
/Users/slagell/Downloads/IllinoisNet (1).mobileconfig.gpg<br>
11/29/11 9:15:51.130 AM GPGServices: fileSize: 0Mb<br>
11/29/11 9:15:51.143 AM GPGServices: General error<br>
11/29/11 9:15:51.145 AM GPGServices: (</p>
<pre>
<code>0 CoreFoundation 0x00007fff86b0c286 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8fc0dd5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff86b964c9 -[NSException raise] + 9
3 MacGPGME 0x00000001000226e0 -[GPGContext(GPGSynchronousOperations) encryptedData:withKeys:trustAllKeys:] + 881
4 GPGServices 0x00000001000046d3 -[GPGServices encryptFiles:] + 1992
5 GPGServices 0x0000000100003ed6 -[GPGServices dealWithFilesPasteboard:userData:mode:error:] + 319
6 AppKit 0x00007fff88f3c6b7 -[NSServiceListener _doInvokeServiceIn:msg:pb:userData:error:unhide:] + 1020
7 AppKit 0x00007fff88f3c241 _NSServiceMasterCallBack + 120
8 CoreFoundation 0x00007fff86b69735 __CFServiceControllerMessagePortCallBack + 629
9 CoreFoundation 0x00007fff86b5dbb9 __CFMessagePortPerform + 729
10 CoreFoundation 0x00007fff86a6b11c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 44
11 CoreFoundation 0x00007fff86a6ae4b __CFRunLoopDoSource1 + 155
12 CoreFoundation 0x00007fff86aa1587 __CFRunLoopRun + 1895
13 CoreFoundation 0x00007fff86aa0ae6 CFRunLoopRunSpecific + 230
14 HIToolbox 0x00007fff8c0f13d3 RunCurrentEventLoopInMode + 277
15 HIToolbox 0x00007fff8c0f858f ReceiveNextEventCommon + 181
16 HIToolbox 0x00007fff8c0f84ca BlockUntilNextEventMatchingListInMode + 62
17 AppKit 0x00007fff889e33f1 _DPSNextEvent + 659
18 AppKit 0x00007fff889e2cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
19 AppKit 0x00007fff889df62d -[NSApplication run] + 470
20 AppKit 0x00007fff88c5e80c NSApplicationMain + 867
21 GPGServices 0x0000000100001554 start + 52
22 ??? 0x0000000000000002 0x0 + 2</code>
</pre>
<p>)</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-29T17:35:00Z2011-11-29T17:35:00Zhow to decrypt or encrypt a folder of files easily<div><p>Can you sign/decrypt/encrypt/verify files via command line?</p></div>Alextag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-29T17:52:13Z2011-11-29T17:52:13Zhow to decrypt or encrypt a folder of files easily<div><p>Well that helped me figure out the problem. The new gpg.conf
which I believe I got with the GPGTools had the following line that
I needed to comment out</p>
<p>auto-key-locate cert pka ldap hkp://keys.gnupg.net</p>
<p>It complained that it was an invalid setting on the command
line, but that message to stderr was not making into the logs.</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T10:23:41Z2011-11-30T10:23:41Zhow to decrypt or encrypt a folder of files easily<div><p>What exactly was the error message? I've the same line in my
config.</p></div>Alextag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T15:28:37Z2011-11-30T15:28:37Zhow to decrypt or encrypt a folder of files easily<div><p>gpg: /Users/username/.gnupg/gpg.conf:234: invalid
auto-key-locate list</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T15:36:29Z2011-11-30T15:36:29Zhow to decrypt or encrypt a folder of files easily<div><p>Hi Adam,</p>
<p>reading up on a mailinglist i found out that the error is
related to DNS support is not built in in the gpg binary you're
using.</p>
<p>Could you please check which version of gpg you are running and
make sure that you haven't compiled a version yourself.</p>
<p>I can also confirm that I have this option in my gpg.conf and
that it works without problems.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T15:39:47Z2011-11-30T15:39:47Zhow to decrypt or encrypt a folder of files easily<div><p>gpg (GnuPG) 1.4.11</p>
<p>I have not compiled it myself.</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T15:43:53Z2011-11-30T15:43:53Zhow to decrypt or encrypt a folder of files easily<div><p>Could you post the command which generated the "invalid..."
error you posted?</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T15:53:48Z2011-11-30T15:53:48Zhow to decrypt or encrypt a folder of files easily<div><p>gpg -e GPGMail-v2.0a11.mailbundle.zip</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T15:57:29Z2011-11-30T15:57:29Zhow to decrypt or encrypt a folder of files easily<div><p>It would be great if you could try to use GPG v2 instead of GPG
v1.<br>
First best move your MacGPG1 installation under
/usr/local/MacGPG1<br>
When running the installer, simply deselect MacGPG1 and select
MacGPG2.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T16:22:32Z2011-11-30T16:22:32Zhow to decrypt or encrypt a folder of files easily<div><p>I ran the following just fine.</p>
<p>gpg2 -e GPGMail-v2.0a11.mailbundle.zip</p>
<p>Not sure where the GPG v1 came from. Should I probably just
delete /usr/local/bin/gpg*</p>
<p>/opt/local/bin/gpg-error /opt/local/bin/gpg-error-config
/usr/local/MacGPG2/bin/gpg-agent
/usr/local/MacGPG2/bin/gpg-connect-agent
/usr/local/MacGPG2/bin/gpg-error
/usr/local/MacGPG2/bin/gpg-error-config /usr/local/MacGPG2/bin/gpg2
/usr/local/MacGPG2/bin/gpgconf /usr/local/MacGPG2/bin/gpgkey2ssh
/usr/local/MacGPG2/bin/gpgparsemail /usr/local/MacGPG2/bin/gpgsm
/usr/local/MacGPG2/bin/gpgsm-gencert.sh
/usr/local/MacGPG2/bin/gpgv2 /usr/local/bin/gpg
/usr/local/bin/gpg-agent /usr/local/bin/gpg-zip /usr/local/bin/gpg2
/usr/local/bin/gpgsplit /usr/local/bin/gpgv</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T16:29:28Z2011-11-30T16:29:28Zhow to decrypt or encrypt a folder of files easily<div><p>could you check what version /usr/local/bin/gpg --version
shows.<br>
Should be 2.x as well.<br>
If it shows 1.x, you should delete /usr/local/bin/gpg and link
/usr/local/bin/gpg2 to /usr/local/bin/gpg.</p>
<p>Any chance you've had gpg 1.x installed before? Maybe using
MacPorts or something similar?</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T16:35:06Z2011-11-30T16:35:06Zhow to decrypt or encrypt a folder of files easily<div><p>It is 1.4.11. In fact, the following are not links but actual
binaries.</p>
<p>/usr/bin/local/gpg /usr/bin/local/gpg-zip
/usr/bin/local/gpg-split /usr/bin/local/gpgv</p>
<p>Only</p>
<p>/usr/bin/local/gpg-agent /usr/bin/local/gpg2 are links to
/usr/bin/local/MacGPG2/bin files</p>
<p>I think I will replace all of those with symlinks.</p>
<p>Yes, I had it installed before. I may have had a MacPorts
version, but it is not a listed macports package installed now.</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T16:38:19Z2011-11-30T16:38:19Zhow to decrypt or encrypt a folder of files easily<div><p>Ah ok, so that was the problem.<br>
If you only installed MacGPG2 using GPGTools, you're previous
installation was most likely untouched.<br>
We might deprecate MacGPG1 in the future anyway, but I think you
could fix this also by simply running the GPGTools installer again
and selecting only MacGPG1, so you're previous installation is
overwritten.</p>
<p>Could you also please check if your problem is now completely
solved?</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T16:43:21Z2011-11-30T16:43:21Zhow to decrypt or encrypt a folder of files easily<div><p>My problems are gone. I no longer have any gpgv1 binaries, and I
was able to put that line back in my gpg.conf.</p></div>Slagell, Adam Jtag:gpgtools.tenderapp.com,2011-11-04:Comment/115911162011-11-30T16:47:18Z2011-11-30T16:47:18Zhow to decrypt or encrypt a folder of files easily<div><p>Perfect! Glad we could sort this out!</p></div>Luke Le