unable to sign an email from the terminal to send it to launchpad.

Asked by Anup(SerpentCS)

I am making a python application.

I am using smtp server and sendmail() to send an email.

Now the email is sent to the <email address hidden> but it replies that the message is not signed by the OpenPGP key.

So how can i sign an email with OpenPGP key without using an email client from the python script or terminal itself.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Lustfield (michaellustfield) said :
#1

You will need to utilize the gpg agent. man gpg should give you some information about doing this.

Revision history for this message
Anup(SerpentCS) (anup-serpent) said :
#2

        I have installed gpg i have generated key i have also registered my OpenPGP key with launchpad.
But the thing is that i am unable to sign an email message with the OpenPGP key. I have used pyme and gpgme too but i haven't found any way to sign a message. I tried to encrypt the message and then sent it it gave the same error that ur message is not signed by the OpenPGP key.

       So pls do show me some way that can be helpful to sign a message from python or a shell script.

Revision history for this message
Michael Lustfield (michaellustfield) said :
#3

You might be better served if you go to #python on irc.freenode.net.

Revision history for this message
Anup(SerpentCS) (anup-serpent) said :
#4

but i think the problem is with the sigining key with the launchpad account from the terminal. Do you have any solution for that ?

Revision history for this message
Michael Lustfield (michaellustfield) said :
#5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You uploaded your key to Launchpad. You need to sign your message, and
then send it to Launchpad. You don't use your account to sign it. In
fact, you uploaded your public key to Launchpad and you use your
private key to sign it.

On Thu, 25 Jun 2009 13:17:15 -0000
"Anup \(Open ERP\)" <email address hidden> wrote:

> Question #75103 on Launchpad itself changed:
> https://answers.launchpad.net/launchpad/+question/75103
>
> Status: Answered => Open
>
> Anup (Open ERP) is still having a problem:
> but i think the problem is with the sigining key with the launchpad
> account from the terminal. Do you have any solution for that ?
>

- --
Michael Lustfield

Kalliki Software, SD LoCo
Network and Systems Administrator
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpDrCQACgkQ3y7Nst6YLGVBZACgqNdZpuFcMX3FEJoLhnwHUX4S
8+gAn0/BO64lpmnFfcx7HXqNxpZYR5Ky
=hhSE
-----END PGP SIGNATURE-----

Revision history for this message
Anup(SerpentCS) (anup-serpent) said :
#6

I know i need to sign the message with the secret key but how to use the key to sign the message ?

Revision history for this message
Michael Lustfield (michaellustfield) said :
#7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've only used tools that call it. You should check out the IRC channel
for it.
http://webchat.freenode.net/?nick=anup&channels=gnupg

On Fri, 26 Jun 2009 05:12:23 -0000
"Anup \(Open ERP\)" <email address hidden> wrote:

> Question #75103 on Launchpad itself changed:
> https://answers.launchpad.net/launchpad/+question/75103
>
> Status: Answered => Open
>
> Anup (Open ERP) is still having a problem:
> I know i need to sign the message with the secret key but how to use the
> key to sign the message ?
>

- --
Michael Lustfield

Kalliki Software, SD LoCo
Network and Systems Administrator
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpEWwYACgkQ3y7Nst6YLGW7ggCeOftV67aey11/+qQG+wPQ6ytf
9fgAoJBjHo1RtFUJrbJErJvSCMCHj2iS
=awkE
-----END PGP SIGNATURE-----

Can you help with this problem?

Provide an answer of your own, or ask Anup(SerpentCS) for more information if necessary.

To post a message you must log in.