At 10:09 10.05.2002 -0300, you wrote:

>Hi all,
>
>I have a simple question: why the modulus is showed with 1032 bits and it 
>always has a 0 at the beginning? It does this way in OpenSSL but also on 
>browsers.
>
>Thank you for your help.
>
>Heber.
>
>modulus:
>
>00:e6:fa:c3:06:49:ac:95:c2:9e:bb:f6:04:dd:60:
>
>ff:f0:31:77:8a:e0:c5:14:e3:15:41:6a:17:96:1c:
>
>9d:06:8c:c8:08:ca:34:e5:c9:32:b9:2f:6b:ef:03:
>
>1b:bb:ed:88:4a:ce:e2:29:7f:a6:66:b5:b7:7e:e0:
>
>3b:85:16:0b:b9:c4:d2:29:5c:fc:5e:f3:be:d1:0e:
>
>ad:35:8f:77:19:06:cc:c9:b9:31:5f:c1:33:08:ca:
>
>3d:b5:52:47:70:67:a2:74:a4:81:04:33:24:06:a8:
>
>7d:c8:2d:f0:0a:84:dc:33:6a:b1:4b:1f:b1:36:40:
>
>cf:2f:0c:88:90:4f:9e:f4:0b
>
>publicExponent: 65537 (0x10001)

A DER INTEGER value is encoded in a peculiar way. The first bit is the sign.
So, if the value would start with e6:...., it would be NEGATIVE!
So, you need a 0 in front of it.

Funny note: I have seen certificates with a negative public exponent. You 
really can
get them wrong.


Jörn
'


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

Reply via email to