ssl - Site certificate serial number changed after imported to Java keystore using keytool -


I am configuring a Java client so that it is connected to an https service. This service is in an experimental injection, so no certified certificate has been provided, and I have to manually import it into Java Keystore to work.

In the browser, I checked the certificate and the serial number is something like this:

  รข ???? ca d0 fa e 6 4cc 2 2b 16 60 88 51fb e4e3 2a1f   

and I downloaded this certificate and imported the castastore But if I check the serial number again, using the command with keytool utility:

  keytool -list -v -keystore cacerts < / code>  

has changed the serial number:

  -352f0519b23dd4e99f77ae041b1cd5e1   

However, the MD5 and Teh SHA1 / fingerprints Is similar, so why change serial number Is received? And I'm probably unable to connect to the server due to this mismatch?

I am referring to this link for this trial:

just a false statement signed by the same serial number of an unsigned integer as the integer that if you as binary

  11001010110100001111101011100110010011011100001000101011000101100110000010001000010100011111101111100100111000110010101000011111 00110101001011110000010100011001101100100011110111010100111010011001111101110111101011100000010000011011000111001101010111100001   

the original serial Number SN The second line (0x352f0519b23dd4e99f77ae041b1cd5e1) is that you can see this better by writing positive part = 0xcad0fae64dc22b16608851fbe4e32a1f, all these bits are flipped and 1 is added. Thus Java shows effectively in the same number, but a signed value ( SN == - (- SN) )

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -