Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2004 01:30:08 -0600
From:      "W. D." <WD@US-Webmasters.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Email encryption options for FreeBSD?
Message-ID:  <5.1.0.14.2.20040121002805.05e63ec0@209.152.117.178>
In-Reply-To: <87isj6gdlb.fsf@strauser.com>
References:  <5.1.0.14.2.20040120193001.05cca510@209.152.117.178> <5.1.0.14.2.20040120193001.05cca510@209.152.117.178>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Kirk, for your reply!

At 21:55 1/20/2004, Kirk Strauser, wrote:

>At 2004-01-21T01:37:15Z, "W. D." <WD@US-Webmasters.com> writes:
>
>> I'd like to use the PHP mail() function to send back some sensitive
>> information.  The command pkg_info doesn't show any encryption packages
>> installed.
>>
>> Does anyone have some experience with sending out encrypted emails?
>
>Why not:
>
>1) Install the security/gnupg port.

Would this consist of:

1.  First doing a portupgrade?  (OS is FreeBSD 4.4, ports are=20
    pretty much that old.)

    # portupgrade gnupg -arR

    (The -R will check the build dependencies and the -r=20
     will check the applications that depend upon the=20
     port being upgraded. This will prevent your system from having
     outdated dependencies and software incompatibilities.)

    (Would I need to be logged in as root, or would a super user
     be fine?)


2.  Go to:
    # cd /usr/ports/security/gnupg

3.  # make

4.  # make install

5.  # make clean

6.  Would I need to reboot to have full functionality?  (This is
    a production server, so this process would need to be done
    during off hours.)


>2) Generate a keypair for the email recipient.

    Like this?

    # gpg --gen-key



>3) Craft your script to use the "gpg" program to encrypt the outbound email
>   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



>5) Profit!

    Could you be *VERY* specific on how to do this?  ;^)



Thanks!



>--=20
>Kirk Strauser
>
>"94 outdated ports on the box,
> 94 outdated ports.
> Portupgrade one, an hour 'til done,
> 82 outdated ports on the box."


Start Here to Find It Fast!=99 -> http://www.US-Webmasters.com/best-start-pa=
ge/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20040121002805.05e63ec0>