Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA certificate profiles: the startTime parameter is not working as expected. #2640

Closed
pki-bot opened this issue Oct 3, 2020 · 6 comments
Closed
Milestone

Comments

@pki-bot
Copy link

pki-bot commented Oct 3, 2020

This issue was migrated from Pagure Issue #2520. Originally filed by ddas@redhat.com on 2016-10-17 18:07:37:


In the CA certificate profiles the startTime parameter is not
working as expected. When editing the line
"policyset.GenericCertificateSet.ValidityPeriod.default.params.startTime=0" and
changing the value from 0 to something large such as 2592000 the results are
not as expected. This should cause a certificate to be issued with the
notBefore date being 30 days in the future but what actually happens is the
notBefore date is in the past. If the value for startTime is less than 2147483
then it seems to work as expected but any larger value does not work as
expected.

Actual results:

notBefore date is set in the past

Expected results:

The certificate should be issued with the notBefore date being 30 days in the
future

Additional info:

May be found in associated Bugzilla Bug.
@pki-bot pki-bot added this to the 10.4.3 milestone Oct 3, 2020
@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2016-11-21 23:35:54

On 11/21/2016, dsirrine wrote:
This is not a priority and can be targeted for RHEL 7.4 and CS 9.2... I will update if there are any changes.

NOTE: Marking as 'critical' as it is from a customer request.

@pki-bot pki-bot closed this as completed Oct 3, 2020
@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from ddas@redhat.com at 2017-02-27 13:58:49

Metadata Update from @ddas@redhat.com:

  • Issue assigned to jmagne
  • Issue set to the milestone: 10.4

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from jmagne (@jmagne) at 2017-04-28 17:27:29

Checkin:

commit d98f20d
Author: Jack Magne jmagne@dhcp-16-206.sjc.redhat.com
Date: Wed Apr 26 15:21:39 2017 -0700

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.

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from jmagne (@jmagne) at 2017-04-28 17:27:31

Metadata Update from @jmagne:

  • Custom field component adjusted to General (was: Profiles)
  • Custom field feature adjusted to ''
  • Custom field proposedmilestone adjusted to ''
  • Custom field proposedpriority adjusted to ''
  • Custom field reviewer adjusted to ''
  • Custom field version adjusted to ''
  • Issue close_status updated to: None

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from jmagne (@jmagne) at 2017-04-28 17:38:28

Metadata Update from @jmagne:

  • Issue close_status updated to: fixed
  • Issue status updated to: Closed (was: Open)

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2017-04-29 17:58:34

Metadata Update from @mharmsen:

  • Issue set to the milestone: 10.4.3 (was: 10.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant