how to decrypt or encrypt a folder of files easily
Hi,
I got a folder of files encrypt by PGP applications from windows
platform, how can I decrypt them on MacOS X?
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"
Decrypt file is fine..
I'm using the latest GPG
thanks!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Alex on 22 Nov, 2011 02:25 PM
Hi Kevin,
Thank you for your feedback.
This might happen when the file is very big. There is a maximum time a service is allowed to work on a task.
Try using the command line:
Does this help?
2 Posted by Adam Slagell on 28 Nov, 2011 11:15 PM
I have a similar issue. I cannot encrypt from the services menu in finder. It fails silently.
3 Posted by Alex on 29 Nov, 2011 07:26 AM
There should be an error message in the Console.app - see http://support.gpgtools.org/kb/faq/how-can-i-generate-debugging-inf...
4 Posted by Slagell, Adam J on 29 Nov, 2011 03:18 PM
Yes. See below.
11/29/11 9:15:43.655 AM GPGServices: encrypting file(s): /Users/slagell/Downloads/IllinoisNet (1).mobileconfig...
11/29/11 9:15:51.130 AM GPGServices: destination: /Users/slagell/Downloads/IllinoisNet (1).mobileconfig.gpg
11/29/11 9:15:51.130 AM GPGServices: fileSize: 0Mb
11/29/11 9:15:51.143 AM GPGServices: General error
11/29/11 9:15:51.145 AM GPGServices: (
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
)
5 Posted by Alex on 29 Nov, 2011 05:35 PM
Can you sign/decrypt/encrypt/verify files via command line?
6 Posted by Slagell, Adam J on 29 Nov, 2011 05:52 PM
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
auto-key-locate cert pka ldap hkp://keys.gnupg.net
It complained that it was an invalid setting on the command line, but that message to stderr was not making into the logs.
7 Posted by Alex on 30 Nov, 2011 10:23 AM
What exactly was the error message? I've the same line in my config.
8 Posted by Slagell, Adam J on 30 Nov, 2011 03:28 PM
gpg: /Users/username/.gnupg/gpg.conf:234: invalid auto-key-locate list
Support Staff 9 Posted by Luke Le on 30 Nov, 2011 03:36 PM
Hi Adam,
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.
Could you please check which version of gpg you are running and make sure that you haven't compiled a version yourself.
I can also confirm that I have this option in my gpg.conf and that it works without problems.
10 Posted by Slagell, Adam J on 30 Nov, 2011 03:39 PM
gpg (GnuPG) 1.4.11
I have not compiled it myself.
Support Staff 11 Posted by Luke Le on 30 Nov, 2011 03:43 PM
Could you post the command which generated the "invalid..." error you posted?
12 Posted by Slagell, Adam J on 30 Nov, 2011 03:53 PM
gpg -e GPGMail-v2.0a11.mailbundle.zip
Support Staff 13 Posted by Luke Le on 30 Nov, 2011 03:57 PM
It would be great if you could try to use GPG v2 instead of GPG v1.
First best move your MacGPG1 installation under /usr/local/MacGPG1
When running the installer, simply deselect MacGPG1 and select MacGPG2.
14 Posted by Slagell, Adam J on 30 Nov, 2011 04:22 PM
I ran the following just fine.
gpg2 -e GPGMail-v2.0a11.mailbundle.zip
Not sure where the GPG v1 came from. Should I probably just delete /usr/local/bin/gpg*
/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
Support Staff 15 Posted by Luke Le on 30 Nov, 2011 04:29 PM
could you check what version /usr/local/bin/gpg --version shows.
Should be 2.x as well.
If it shows 1.x, you should delete /usr/local/bin/gpg and link /usr/local/bin/gpg2 to /usr/local/bin/gpg.
Any chance you've had gpg 1.x installed before? Maybe using MacPorts or something similar?
16 Posted by Slagell, Adam J on 30 Nov, 2011 04:35 PM
It is 1.4.11. In fact, the following are not links but actual binaries.
/usr/bin/local/gpg
/usr/bin/local/gpg-zip
/usr/bin/local/gpg-split
/usr/bin/local/gpgv
Only
/usr/bin/local/gpg-agent
/usr/bin/local/gpg2 are links to /usr/bin/local/MacGPG2/bin files
I think I will replace all of those with symlinks.
Yes, I had it installed before. I may have had a MacPorts version, but it is not a listed macports package installed now.
Support Staff 17 Posted by Luke Le on 30 Nov, 2011 04:38 PM
Ah ok, so that was the problem.
If you only installed MacGPG2 using GPGTools, you're previous installation was most likely untouched.
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.
Could you also please check if your problem is now completely solved?
18 Posted by Slagell, Adam J on 30 Nov, 2011 04:43 PM
My problems are gone. I no longer have any gpgv1 binaries, and I was able to put that line back in my gpg.conf.
Support Staff 19 Posted by Luke Le on 30 Nov, 2011 04:47 PM
Perfect! Glad we could sort this out!
Luke Le closed this discussion on 30 Nov, 2011 04:47 PM.
Steve closed this discussion on 20 Aug, 2013 04:23 PM.