Certificates Question

Certificates Question

Secure Home | Search | About
 General Computer Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Certificates Question SecBoy 03-27-2007
Posted by SecBoy on March 27, 2007, 2:50 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi,
I am a total newbie at security, just trying to learn the
basics. So pardon me if my questions are naive.

1) I navigate to mail.yahoo.com using IE6. I see
a golden padlock on the status bar. I click on it to the
see the certificate. In the details tab - I click the public
key field - In the value column I see "RSA (1024 bits)
But if I copy the value from below - 30 81 89 .... 00 01",
I see it's actually 140 bytes (1120 bits) & not 1024 bits.
If I go to the same site using Firefox 2.0.0.3 & look
at the certificate, the subject's public key field shows
"Size: 140 Bytes / 1120 Bits". Why does IE show 1024 instead of 1120.

2) I am looking at a tutorial at
http://www.freesoft.org/CIE/Topics/140.htm
In the paragraph "X.509 Certificates", look at the first
certificate. In the certificate look at the
"Subject Public Key Info:"

RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:b4: ..........
.................
.........7e:41:8f

The key is actually 129 bytes or 1032 bits &
not 1024 as stated. Why the discrepency - is it because
of the leading "00"?




Posted by Sebastian Gottschalk on March 27, 2007, 3:26 am
If you were  Registered and logged in, you could reply and use other advanced thread options
SecBoy wrote:

> Hi,
> I am a total newbie at security, just trying to learn the
> basics. So pardon me if my questions are naive.
>
> 1) I navigate to mail.yahoo.com using IE6.

Why are you abusing MSIE as a webbrowser? Why are you abusing a Webmail
interface?

> I see a golden padlock on the status bar.

So what? Since you're abusing MSIE, this is meaningless.

> I click on it to the
> see the certificate. In the details tab - I click the public
> key field - In the value column I see "RSA (1024 bits)
> But if I copy the value from below - 30 81 89 .... 00 01",
> I see it's actually 140 bytes (1120 bits) & not 1024 bits.
> If I go to the same site using Firefox 2.0.0.3 & look
> at the certificate, the subject's public key field shows
> "Size: 140 Bytes / 1120 Bits". Why does IE show 1024 instead of 1120.

Maybe you should simply read the text on your screen. The size of the
modulus and the size of the public key (containing the modulus) are of
course different, due to encoding.

> 2) I am looking at a tutorial at
> http://www.freesoft.org/CIE/Topics/140.htm
> In the paragraph "X.509 Certificates", look at the first
> certificate. In the certificate look at the
> "Subject Public Key Info:"
>
> RSA Public Key: (1024 bit)
> Modulus (1024 bit):
> 00:b4: ..........
> .................
> .........7e:41:8f
>
> The key is actually 129 bytes or 1032 bits &
> not 1024 as stated. Why the discrepency - is it because
> of the leading "00"?

Obviously. Maybe you should simply read that tutorial first to understand
how encoding is done.

Posted by SecBoy on March 27, 2007, 11:46 pm
If you were  Registered and logged in, you could reply and use other advanced thread options

> SecBoy wrote:
>
>> Hi,
>> I am a total newbie at security, just trying to learn the
>> basics. So pardon me if my questions are naive.
>>
>> 1) I navigate to mail.yahoo.com using IE6.
>
> Why are you abusing MSIE as a webbrowser? Why are you abusing a Webmail
> interface?

How am I abusing any of these things?

>
>> I see a golden padlock on the status bar.
>
> So what? Since you're abusing MSIE, this is meaningless.
>
>> I click on it to the
>> see the certificate. In the details tab - I click the public
>> key field - In the value column I see "RSA (1024 bits)
>> But if I copy the value from below - 30 81 89 .... 00 01",
>> I see it's actually 140 bytes (1120 bits) & not 1024 bits.
>> If I go to the same site using Firefox 2.0.0.3 & look
>> at the certificate, the subject's public key field shows
>> "Size: 140 Bytes / 1120 Bits". Why does IE show 1024 instead of 1120.
>
> Maybe you should simply read the text on your screen. The size of the
> modulus and the size of the public key (containing the modulus) are of
> course different, due to encoding.

Again I apologize for being dense. Which is the modulus part of
the public key?

>
>> 2) I am looking at a tutorial at
>> http://www.freesoft.org/CIE/Topics/140.htm
>> In the paragraph "X.509 Certificates", look at the first
>> certificate. In the certificate look at the
>> "Subject Public Key Info:"
>>
>> RSA Public Key: (1024 bit)
>> Modulus (1024 bit):
>> 00:b4: ..........
>> .................
>> .........7e:41:8f
>>
>> The key is actually 129 bytes or 1032 bits &
>> not 1024 as stated. Why the discrepency - is it because
>> of the leading "00"?
>
> Obviously. Maybe you should simply read that tutorial first to understand
> how encoding is done.

I did read the tutorial. But I still didn't get it - my mistake. If someone
could
elaborate, that would be nice.



Posted by Sebastian Gottschalk on March 28, 2007, 4:58 am
If you were  Registered and logged in, you could reply and use other advanced thread options
SecBoy wrote:

>>> 1) I navigate to mail.yahoo.com using IE6.
>>
>> Why are you abusing MSIE as a webbrowser? Why are you abusing a Webmail
>> interface?
>
> How am I abusing any of these things?

MSIE is no webbrowser. Webmail is the worst and by design insecure way to
retrieve E-Mail.

That why reasonable people retrieve E-Mail via POP3 or IMAP using a mail
program.

>>> But if I copy the value from below - 30 81 89 .... 00 01",
>>> I see it's actually 140 bytes (1120 bits) & not 1024 bits.
>>> If I go to the same site using Firefox 2.0.0.3 & look
>>> at the certificate, the subject's public key field shows
>>> "Size: 140 Bytes / 1120 Bits". Why does IE show 1024 instead of 1120.
>>
>> Maybe you should simply read the text on your screen. The size of the
>> modulus and the size of the public key (containing the modulus) are of
>> course different, due to encoding.
>
> Again I apologize for being dense. Which is the modulus part of
> the public key?

That heavily depends on the encoding. Is it DER or BER? BLOB or
ByteSequence escaping?

>> Obviously. Maybe you should simply read that tutorial first to understand
>> how encoding is done.
>
> I did read the tutorial. But I still didn't get it - my mistake. If someone
> could elaborate, that would be nice.

The 00 is part of the encoding.

Similar ThreadsPosted
X.509 Digital Certificates March 7, 2005, 8:56 pm
Chaining x.509 certificates April 27, 2005, 3:46 pm
Chaining x.509 certificates April 27, 2005, 3:48 pm
What are the differences between the certificates *.pfx *.p12 *.cer *.crt *.spc *.p7b ?? July 19, 2005, 2:02 pm
Wildcard SSL Certificates July 27, 2005, 10:30 am
sample X.509 certificates? February 20, 2007, 9:38 pm
Value of SSL client certificates? October 19, 2007, 10:18 am
How to generate SSL certificates - a little howto March 22, 2005, 8:34 pm
Repository for digital certificates June 3, 2005, 1:50 pm
VPN vs SSL client side certificates September 6, 2005, 12:48 pm

The site map in XML format XML site map

Contact Us | Privacy Policy