[Pki-devel] [pki-devel][PATCH]

John Magne jmagne at redhat.com
Wed Apr 26 22:29:17 UTC 2017


CA in the certificate profiles the startTime parameter is not working as expected.
    
    This simple fix addresses an overflow in the "startTime" paramenter in 4 places in the code. I felt that honing in only on the startTime value was the best way to go. In some of the files other than ValidityDefault.java, there were possibly some values that could be changed from int to long. Due to the complexity of some of the calculations involved in some of those cases, it is best to fix the exact issue at hand instead of introducing some other possible side effects.

Tested with a simple enrollment in the caUserCert profile by setting the startTime constraint to the offending value listed in the ticket/bug. The correct start time 30 days in the future was calculated and made part of the cert.


Issue:

https://pagure.io/dogtagpki/issue/2520
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0093-CA-in-the-certificate-profiles-the-startTime-paramet.patch
Type: text/x-patch
Size: 6541 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20170426/6124239f/attachment.bin>


More information about the Pki-devel mailing list