Hi Marek,

Yes, my public key now is base64 pem format, how do I make it a DER format?
I believe I removed the headers and replace .pem with .cer, and make the
public key all in one line?

thanks!

On 6/28/07, Marek Marcola <[EMAIL PROTECTED]> wrote:

Hello,
> Hello,
> > I am getting wrong tag when storing my public key (pkcs#1) using d2i
> > (running on redhat) before doing verification:
> >
> > dsa->dsa = d2i_DSA_PUBKEY(NULL,
> >   (const unsigned char **)&(fromp->RawPubKey),
> > strlen(fromp->RawPubKey));
> >
> > error:
> > Load public key failed:  asn1 encoding routines: ASN1_CHECK_TLEN:
> > wrong tag
> Do not use strlen() on DER data.
And of course this buffer must be DER, not PEM (base64 with headers).

Best regards,
--
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to