Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-03-2007, 11:03 AM   #1
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
Question how to Digitally sign mails?

Dear friends,

I want to send digitally signed mails through my PHP/perl scripts. I'm comfortable with using "gpg" tool, after creating my public/pvt keys, I'm able to sign and mail contents of a file using following command:

 /usr/bin/gpg --no-tty --yes  --local-user $email --clearsign $filename
Now that command will add text " -----BEGIN PGP SIGNED MESSAGE----- " etc. in message and moreover the mail clients are not
detecting it as a signed mail. To verify that mail, I've to cut/paste contents and pass it to gpg again.

I saw some mails which comes in inbox (thunderbird, outlook etc), the mail client automatically detects them as digitally signed mails and show their contents. (without extra text like "--Begin PGP SIGNED.." "--End " etc.)

I need any hint/clue as how to accomplish this using scripts (I'm on CentOS 4.5). Am I able to implement it using GPG or should I concentrate on any other technology (may be S/MIME or digital Certificates/openSSL, though I dont know much about them)

Your expert comments will be highly appreciated.


Old 10-03-2007, 11:10 AM   #2
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Well, I'm no expert, but I darkly remember an existing package for PHP and GPGme mingled together somehow.

This might be it:
Old 10-04-2007, 07:56 AM   #3
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks for reply.

But I think this php gnupg package is just a wrapper to gpg utility. What I am looking to find a method so that I can send digitally signed mails by using scripts and the mail client (outlook/thunderbird) will understand and display them properly.



digital, gpg, mail, signing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How you can digitally sign documents LXer Syndicated Linux News 1 10-10-2006 09:21 PM
Xine problems with Digitally Imported ceros Linux - Software 1 06-29-2006 03:19 PM
sign on invisible in gaim - NOT invi after sign on saravkrish Linux - Software 7 09-12-2005 11:55 PM
squirrelmail gpg plugin - can't sign mails phil.d.g General 3 05-29-2005 01:29 PM
How to digitally sign a pdf document ssaigol Linux - Software 2 05-21-2005 05:15 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration