I can see what I think should be the public key in the Details tab for StackOverflow's certificate (see screenshot below). However, it is 2160 (num of chars (540) multiplied by 4 = 2160) bits long, not 2048 as it specifies.
When I view the certificate details using openssl
in cmd, I can see a smaller version of the public key which is 514 nibbles * 4 = 2056 bits, which is one byte off 2048.
I noticed the first byte is 00. Is the first byte to be ignored because it's 0? Why is it displayed in openssl?
If the first byte is to be ignored, does this mean the actual public key starts with b2
and ends in af
?
Why does Windows show extra bytes before and after the public key in the Details tab?
I've used Notepad in the screenshot to show the full value of what's in the Details tab.
Update:
I realised the majority of the bytes is the modulus, and the exponent 0x010001 is at the end:
But what is the 02 03
between the modulus and the exponent?
And what is the 30 82 01 0a 02 82 01 01 00
before the modulus?