Re: [exim] DKIM: signing failed (RC -101)

Góra strony
Delete this message
Reply to this message
Autor: Ramana Kumar
Data:  
Dla: Wolfgang Breyha
CC: exim-users
Temat: Re: [exim] DKIM: signing failed (RC -101)
But what could be wrong?

I generated it like this:
openssl rsa -in dkim.private.key -pubout -out dkim.public.key

As I understand it the problem is not with whether the public and private
keys match, but with the private key itself. Does openssl (as above) not
generate them in a format exim can read?

% openssl version
OpenSSL 1.0.1c 10 May 2012


On Wed, Aug 22, 2012 at 5:00 PM, Wolfgang Breyha <wbreyha@???> wrote:

> Ramana Kumar wrote, on 22.08.2012 10:23:
> > What does RC -101mean? I think it means Exim couldn't read my private key
> > or something is wrong with my private key.
>
> Reading the source says
> #define PDKIM_ERR_RSA_PRIVKEY      -101

>
> returned by:
>       /* Perform private key operation */
>       if (rsa_parse_key(&rsa, (unsigned char *)sig->rsa_privkey,
>                         strlen(sig->rsa_privkey), NULL, 0) != 0) {
>         return PDKIM_ERR_RSA_PRIVKEY;
>       }

>
> So, yes, there is something wrong with your private key.
>
> Greetings,
> Wolfgang
> --
> Wolfgang Breyha <wbreyha@???> | http://www.blafasel.at/
> Vienna University Computer Center | Austria
>
>