dkimsign pass canonicalization on command line

Asked by georgespatton

How do I pass canonicalization as an option from the commandline? Reading through the code, it appears that I there are classes for both relaxed and simple.

cat unsignedmessage | /usr/bin/dkimsign.py mykey mydomain.com mymailkeypriv.key myfromemailaddress c=relaxed

Doesn't seem to work, nor does:

cat unsignedmessage | /usr/bin/dkimsign.py mykey mydomain.com mymailkeypriv.key myfromemailaddress canonicalization=relaxed

If there is another way besides the command line to pass this argument, let me know and I will do that.

Thank you.

Question information

Language:
English Edit question
Status:
Expired
For:
dkimpy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Scott Kitterman (kitterman) said :
#1

The dkimsign script doesn't support this currently. As the usage statement says, all it supports is:

Usage: dkimsign.py selector domain privatekeyfile [identity]

Patches welcome.

Revision history for this message
georgespatton (georgespatton) said :
#2

There are methods within the code which will sign with the relaxed or
the simple dkim canonicalization. They default to simple. How are
those accessed if one would want relaxed?

On Wed, Jan 8, 2014 at 8:51 PM, Scott Kitterman
<email address hidden> wrote:
> Your question #241928 on dkimpy changed:
> https://answers.launchpad.net/dkimpy/+question/241928
>
> Status: Open => Answered
>
> Scott Kitterman proposed the following answer:
> The dkimsign script doesn't support this currently. As the usage
> statement says, all it supports is:
>
> Usage: dkimsign.py selector domain privatekeyfile [identity]
>
> Patches welcome.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/dkimpy/+question/241928/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/dkimpy/+question/241928
>
> You received this question notification because you asked the question.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.