I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-04-14 06:03:02.327008-07 by underspell
Mail-DKIM 0.38 fail with myspace.com signatures
This happens because the public key has invalid chars :
pmta._domainkey.myspace.com descriptive text "k=rsa\\\; <brp=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ +ChRebhcm4h8BkIYHRxg1GlKLsDkwdrqkFJ8f88xHQ5Gf3NH4I4e06M3XQ+B4tWWK/rX0srwXFgrJPzKZK+x7gN89nmqyM+NNaM ++Wm2C0GjTpx6639zK3bAAGYCm0L9lGD7PgDxpWok+YogH0Ml4acEwDw/cnhErAWAnX8doPliawIDAQAB"

I modified Mail-DKIM-0.38/lib/Mail/DKIM/KeyValueList.pm in order to work with this:

-$raw_tag =~ s/^\s+|\s*$//g; +$raw_tag =~ s/[^a-z0-9\-]//ig;

Instead of removing leading and trailing spaces, I remove all non-RFC chars.
Does this make sense ???
Direct Responses: 12632 | Write a response
Posted on 2010-04-14 07:10:34.675836-07 by jaslong in response to 12631
Re: Mail-DKIM 0.38 fail with myspace.com signatures
No, this will strip out too many characters. For instance, even in the public key you quoted there are '/' and '+' characters, both of which need to stay there. Your proposed change (I think) would remove those characters.

In addition, the KeyValueList.pm class is used to parse the DKIM-Signature header of incoming email messages, and signatures can/should contain non-alphanumeric characters as well.

What error do you get? I think the only invalid character in the key you quote is the backslash at the end of the k=rsa value. Am I right?
Direct Responses: Write a response