[Pki-devel] [PATCH] 30 Continued - Fix for ticket 219 for DogTag branches : 8.1_Errata and 8.2

Abhishek Koneru akoneru at redhat.com
Fri Aug 24 20:14:30 UTC 2012


Please review the patches attached with fix ticket 219 for DogTag
branches - 8.1_Errata and 8.2.
The description about the ticket is attached below.

--Abhishek Koneru

Defect description:
  The serial number generated for certificates is wrong when the number
is large. Problem is due to the conversion of BigInteger to integer
while generating a new serial number, which truncates the most
significant bits in the serial number and therefore a large number (eg.
10fff0001) becomes a smaller number (eg. fff0001). This conversion in
turn leads to a collision if a certificate with the smaller number
exists in the database.

Steps to reproduce the defect:
 
 - Create a CA. - (1)
 - Edit the fields minSerialNumber and maxSerialNumber in the
<CA-Installation Path>/conf.CS.cfg to large values like 100000000 and
110000000.
 - Restart the CA.
 - Configure the CA.
 - Create a new CA.
 - Configure this as a clone to (1)CA
 - After the Certificates are generated, view the serial number by
clicking on "View Certificate in PrettyPrint".

Results:
Before the patch is applied: The serial number is truncated.(Wrong)
After the patch is applied: The serial number is found as expected.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ticket219-fix-Dogtag8.2-branch.patch
Type: text/x-patch
Size: 5192 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20120824/26bdf110/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ticket_219-fix-Dogtag_8.1_Errata_Branch.patch
Type: text/x-patch
Size: 5080 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20120824/26bdf110/attachment-0001.bin>


More information about the Pki-devel mailing list