Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 3rd October 2007, 18:05
cooljai cooljai is offline
Join Date: May 2007
Location: /dev/random
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cooljai
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.

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix cant send mails thavaht Server Operation 4 19th June 2007 20:26
how to verify if mails got sent? Ovidiu Server Operation 7 29th March 2007 15:25
Sendmai can send mails but unable to receive mails satimis Server Operation 10 20th February 2007 18:10
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 23:09
How to retrive mails from 2nd server dstme Server Operation 3 1st December 2005 19:28

All times are GMT +2. The time now is 02:20.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.