Hello Viktor,

Thanks for the reply.

Is there any limitations with Key Size?

When cert 2 is received by the client from the server. I get a incorrect
tag length error ? Currently i am using Openssl Version 0.9.8. Same
cert(Cert2) works correctly for v1.0.0.d

-Thanks
 mithun





On Fri, Mar 14, 2014 at 8:02 PM, Viktor Dukhovni <openssl-us...@dukhovni.org
> wrote:

> On Fri, Mar 14, 2014 at 06:18:49PM +0530, Mithun Kumar wrote:
>
> > What is the difference between these two formats
>
> The first contains a 1024 bit RSA-SHA1 public key, the second a
> 2048-bit key.
>
> > Below is the ASN output using certuil tool.
> >
> > *Cert1:-*
> >
> > 0618:    30 0d ; SEQUENCE (d Bytes)
> > 061a:    |  06 09 ; OBJECT_ID (9 Bytes)
> > 061c:    |  |  2a 86 48 86 f7 0d 01 01  05
> >             |  |     ; 1.2.840.113549.1.1.5 sha1RSA
> > 0625:    |  05 00 ; NULL (0 Bytes)
> > 0627:    03 81 81 ; BIT_STRING (81 Bytes)
> >
> > *Cert2:-*
> >
> > 0780:    30 0d ; SEQUENCE (d Bytes)
> > 0782:    |  06 09 ; OBJECT_ID (9 Bytes)
> > 0784:    |  |  2a 86 48 86 f7 0d 01 01  05
> >             |  |     ; 1.2.840.113549.1.1.5 sha1RSA
> > 078d:    |  05 00 ; NULL (0 Bytes)
> > 078f:    03 82 01 01 ; BIT_STRING (101 Bytes)
> > 0793:       00
> >
> > What does the highlighted values  indicate? Any idea?
>
> The signature algorithm name and key length.  The byte counts are
> reported in hex by the tool you're using, so 0x101 is 257 decimal,
> and 0x81 is 129 decimal.
>
> --
>         Viktor.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
>

Reply via email to