From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 07:45:28 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF25F16A4CE for ; Wed, 21 Jan 2004 07:45:28 -0800 (PST) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E47843D1D for ; Wed, 21 Jan 2004 07:45:23 -0800 (PST) (envelope-from kirk@strauser.com) Received: from pooh.strauser.com (pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.10/8.12.10) with ESMTP id i0LFjLXl003785 for ; Wed, 21 Jan 2004 09:45:22 -0600 (CST) (envelope-from kirk@strauser.com) To: freebsd-questions@freebsd.org References: <5.1.0.14.2.20040120193001.05cca510@209.152.117.178> <5.1.0.14.2.20040120193001.05cca510@209.152.117.178> <5.1.0.14.2.20040121002805.05e63ec0@209.152.117.178> From: Kirk Strauser Date: Wed, 21 Jan 2004 09:45:16 -0600 In-Reply-To: <5.1.0.14.2.20040121002805.05e63ec0@209.152.117.178> (W. D.'s message of "Wed, 21 Jan 2004 01:30:08 -0600") Message-ID: <871xptmhkj.fsf@strauser.com> Lines: 79 X-Mailer: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: Email encryption options for FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2004 15:45:28 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable At 2004-01-21T07:30:08Z, "W. D." writes: > Thanks Kirk, for your reply! You bet. > Would this consist of: > > 1. First doing a portupgrade? (OS is FreeBSD 4.4, ports are pretty much > that old.) I'd recommend it, if only to get the most recent security patches for your system. > # portupgrade gnupg -arR The '-a' will upgrade everything on your system. Is that what you want? Another option may be: # portupgrade -N security/gnupg which will upgrade all dependencies, then install gnupg. > (Would I need to be logged in as root, or would a super user be fine?) I'm pretty sure you'll need to be root (or using sudo to execute the commands as root). > 6. Would I need to reboot to have full functionality? Not likely at all. I'd be very surprised if any of this required a reboot. >>2) Generate a keypair for the email recipient. > Like this? > > # gpg --gen-key Yep. >>3) Craft your script to use the "gpg" program to encrypt the outbound ema= il >> with the public key generated in step #2. >>4) mail() > Something like these? > http://www.pantz.org/scripting/php/gpgemail.shtml > http://www.awtrey.com//files/php/gpgsend.txt Sure. The second one has this block: $commandline =3D "echo $body | /usr/bin/gpg --homedir /home/username/.gnupg= -a -r 'Full Username' -e -"; if ($debug=3D=3D1) { system($commandline); } else { exec($commandline,$encrypted); } If you've already written the mailer, you could probably stick the above (modified to suit) somewhere before the mail() function and leave the rest of your script intact. >>5) Profit! > Could you be *VERY* specific on how to do this? ;^) Sure! Just send $29.95 (plus $11.23 s/h) for my three-step program. ;-) > Thanks! No problem. Good luck! =2D-=20 Kirk Strauser "94 outdated ports on the box, 94 outdated ports. Portupgrade one, an hour 'til done, 82 outdated ports on the box." --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBADp6R5sRg+Y0CpvERAiReAJ9vmX9Le2TV61amLXUyynrp5NtQNQCfV+Jt Agx4TKWdGwOsCWDS8eCtfg4= =7n0n -----END PGP SIGNATURE----- --=-=-=--