List Info

Thread: Help to Install GPG on Mac




Help to Install GPG on Mac
user name
2006-07-22 17:59:38

a few days ago I turned on "File Vault"; on my new Apple Mac. This
turned out to be a disaster. There were insidious side-effects. After
3.5 hours on fone today with a nice Apple-Care rep, we deleted the
identity that I'd logged on/set-up when I got the mac a couple weeks
ago.

And thus went my PGP .... except that many of them still reside in
the bin folder ... just that there is no way to run it and trying to
generate a keypair results in my needing to kill the app as it runs
an hour.

Can some kind and patient being please email me and walk me through
the entire process of putting gnupg and associated helper apps back
onto my Apple Mail and desktop?

Apparently File vault has known *possible* serious issues. Well, duh!!

--
regards,
Robert D.

__._,_.___
.

__,_._,___
Help to Install GPG on Mac
user name
2006-07-22 20:13:32

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Robert D. wrote:
> Can some kind and patient being please email me and walk me through
> the entire process of putting gnupg and associated helper apps back
> onto my Apple Mail and desktop?

Easy enough. It'll be a multistep process.

1. Remove any existing GnuPG installations
2. Reinstall GnuPG from Fink or DarwinPorts
3. Install GPGMail from Stephane Corthesy
4. Generate new keys

You'll need to open Terminal.app (in
/Applications/Utilities/Terminal.app) to do this stuff.

=====

STEP 1: FIND AND REMOVE ANY EXISTING GNUPG INSTALLATIONS

- From Terminal.app, execute the following command:

find -d $HOME /sw /usr /opt -name gpg 2>/dev/null

This will take a few minutes to run, depending on your hard drive size
and how much you have installed. When I run it on my system I get:

Samuel:~ rjh$ find -d $HOME /sw /usr /opt -name gpg 2>/dev/null
/Users/rjh/bin/gpg
/Users/rjh/gnupg-1.4.4/g10/gpg
/sw/bin/gpg

... So I have one GnuPG in my home directory's bin/ subdirectory, one
GnuPG in the source tree where I built GnuPG, and one GnuPG which Fink
installed for me automagically. (I didn't realize Fink had done so, by
the way--must've been a dependency.)

Anyway. You'll have a list of UNIX pathnames as the output of the find
command. In the next step, we're going to remove all of them:

Samuel:~ rjh$ sudo rm -f /Users/rjh/bin/gpg
/Users/rjh/gnupg-1.4.4/g10/gpg /sw/bin/gpg

(Please note the above is all one line. Email may have broken it up
onto two.)

OS X will ask you for your password, probably. Feed it in.

A word of warning: _DO NOT EVER, EVER, EVER EXECUTE SUDO COMMANDS GIVEN
TO YOU BY SOMEONE YOU DO NOT TRUST_. sudo is the "keys to the kingdom",
as it were. sudo turns off all the features OS X has to protect you
from yourself. Sometimes it's necessary--for instance, OS X will
prohibit you from deleting things from system directories, which means
if GnuPG lives there, you'll need to sudo it--but always be careful with it.

Don't be afraid of it... just be careful with it.

STEP 2: REINSTALL GNUPG FROM FINK OR DARWINPORTS

DarwinPorts is probably easier for a newcomer. Download it from
http://darwinports.org. Install the package.

Quit out of Terminal.app and start another Terminal.app. (The
DarwinPorts installer modifies a startup file for Terminal.app, and it's
helpful to quit Terminal.app and reload it so the startup file will be
re-read. Don't just close the window... quit Terminal.app outright,
using Apple-Q.)

Once you've done that and reopened Terminal.app, run the following command:

Samuel:~ rjh$ sudo port selfupdate

... Your computer may go idle for a few minutes as DarwinPorts goes off
to the Internet to update itself. Once it's done:

Samuel:~ rjh$ sudo port install gnupg +idea

... Wait a few minutes as DarwinPorts builds GnuPG 1.4.4 with IDEA
support. When you're done, try:

Samuel:~ rjh$ which gpg
/opt/local/bin/gpg

... And voila, you're done installing GnuPG.

STEP 3: INSTALL GPGMAIL FROM STEPHANE CORTHESY

Quit Mail.app first. (Don't just close it; use Apple-Q to quit it.)

Download GPGMail from
http://www.sente.ch/software/GPGMail/English.lproj/GPGMail.html#Download

Install it.

(Note: some older versions of GPGMail insisted that GnuPG live in a
particular place in the directory. This may have since been fixed. If
it hasn't, then:

Samuel:~ rjh$ sudo ln -s /opt/local/bin/gpg /usr/local/bin/gpg

... should fix the problem.)

STEP 4: GENERATE NEW KEYS

If you have backups of your old keys, "gpg --import /path/to/key" should
import them. Make sure to manually set their trust level afterwards.

If you need to generate new keys, "gpg --gen-key" is the way to go.

... Hope all this helps!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBCgAGBQJEwobsAAoJELcA9IL+r4EJa88IAKVYvg1pMRuMKIg7Ri089v90
gRdQ5tIB++Xk+jWNEvKJu3cGzA2h6WJBkNVFLm2EwQvv101QzTbYOT2GG7v+GH4Y
46n6AsI6u63FwKbouYA+gqO/5jMQJmqK0OufbZJkvlGox8Atcpn8org6LAVSVtMv
XqtrUERbU/zlxA5yoEe6dIMNrn6iw/bNSy9gYdfbc8LutzSwWM30165xF2sfPhrl
ZD8Vz3VjmrrN2GiprWA6j8yDf9YOzhL4tzasSVM1ahghLWz9xK3a8j6mHJPxco76
/r8Ppy6ZY5lh4MWWeTJ/BQgNlCi9hpU5kdbtTYeJNdi+J36ornxJleRsDqHfATw=
=VGuJ
-----END PGP SIGNATURE-----

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )