This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I would get the crl(certification revocation list) from one ldap server, in which the certificates based on PKI are saved. I have done somehting as follow: 1. [connection to ldap server] 2. [search] 3. [ return byte value ] 4. [parse the return value / get the crl list] 5. [handle each X509CRLEntry, get certfication serial number by calling getSerialNumber() ] 6. [ return final serail number ] 7. something seems wrong : the serial number return by sun cert package is like: 83079285076462345718802332854154855 but if I open the same return result by windows 2000 system, the serial number looks like: 1000 2000 2004 0727 1110 0000 0280 19
I was wonering what cause such difference? potential encoding? different implementation way?
posted 11 years ago
I got the answer by myself.
when to display the BigInteger number as string, we can choose toString based on different radix, when chose 16, the problem is solved