searchCertificates REST endpoint returns a trimmed serial number #673
-
Hi, The serial number of a certificate returned by the REST endpoint Actual serial number (web UI): REST reposnse using cURL: {
"serialNumber":"ABCDE622552BC2533C84208DA1AEC380D8454AC"
} What is the reason for this discrepeny? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ah, there you see. THis is just a formatting thing. Some output, say by default Java BigInteger.toString(16) does not include leading zeroes. |
Beta Was this translation helpful? Give feedback.
Ah, there you see. THis is just a formatting thing. Some output, say by default Java BigInteger.toString(16) does not include leading zeroes.
The leading zero does not contribute anything to the value. Hex converting it to decimal gives the same value regardless of the leading zero or not.