RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1632618 - CC: tomcatjss: unable to enable OCSP checking from peer AIA extension [rhel-7.6.z]
Summary: CC: tomcatjss: unable to enable OCSP checking from peer AIA extension [rhel-7...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tomcatjss
Version: 7.6
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Jack Magne
QA Contact: Asha Akkiangady
Marc Muehlfeld
URL:
Whiteboard:
Depends On: 1630469 1636564
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-25 08:48 UTC by Oneata Mircea Teodor
Modified: 2019-01-29 17:21 UTC (History)
8 users (show)

Fixed In Version: tomcatjss-7.2.1-8.el7_6
Doc Type: Bug Fix
Doc Text:
Previously, the tomcatjss library ignored the URL to the Online Certificate Status Protocol (OCSP) responder set in the Authority Information Access (AIA) extension of a certificate. As a consequence, the library used the default URL set in the server.xml file. The problem has been fixed. As a result, if a certificate contains a URL in the AIA extension, and tomcatjss has been correctly configured, the system verifies the certificate using the OCSP responder contained in the AIA extension.
Clone Of: 1630469
Environment:
Last Closed: 2019-01-29 17:21:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0167 0 None None None 2019-01-29 17:21:52 UTC

Description Oneata Mircea Teodor 2018-09-25 08:48:46 UTC
This bug has been copied from bug #1630469 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 2 Matthew Harmsen 2018-10-09 16:23:33 UTC
 Jack Magne 2018-09-20 21:51:17 EDT

Commit downstream / origin/TOMCATJSS_7_2_BRANCH

commit c7e9138d59833ca0b9437fd130d3d9cb2fdf393d
Author: John Magne <jmagne.redhat.com>
Date:   Thu Sep 20 21:35:20 2018 -0400

    Fix for Bug 1630469 - CC: tomcatjss: unable to enable OCSP checking from peer AIA extension.
    
        Now the server.xml can be configured to enable ocsp AND leave other settings null, to trigger
        NSS to use the AIA extension to locate the ocsp responder.
    
        ex:
    
         <Connector name="Secure" port="18443" ...
             .....
             enableOCSP="true"  ocspCacheSize="1000" ocspMinCacheEntryDuration="60" ocspMaxCacheEntryDuration="120" ocspTimeout="10"

Comment 3 Matthew Harmsen 2018-10-09 16:24:20 UTC
 Jack Magne 2018-09-20 21:57:38 EDT

Testing instructions:

In order to test this functionality do the following:

Create a CA
Create a KRA and make sure the AIA extension of each system cert for the KRA points to something like this:

http://test.host.com:8080/ca/ocsp

This is what you get by default if a simple kra install is done and points to the security domain of the CA during pkispawn.

Stop the KRA and reconfigure the Connector of the SSL port in the kra instances "server.xml" file such as this:

<Connector name="Secure" port="18443" ...
             .....
             enableOCSP="true"  ocspCacheSize="1000" ocspMinCacheEntryDuration="60" ocspMaxCacheEntryDuration="120" ocspTimeout="10"

Note that we have left out the settings for ocspResponderURL and ocspSigingCertNickname, or whatever the actual strings are. This means that ONLY enableOCSP="true" is set. This means that NSS will ultimately be forced to find the ocsp responder url from a given cert's AIA extension, instead of a default value we may have configured here.

Now restart the KRA while putting a tail on teh CA's log.

While the KRA restarts we should observe the CA's internal ocsp responder coming to life, verifying various certs associated with the KRA.


Note: That of course certs can be applied for with the AIA extension pointing to  outboard ocsp responders as well. When we want specific certs to hit specific responders, this is how it should be tested.

Comment 5 Amol K 2018-11-15 18:27:22 UTC
I tested this BZ on the 10.5.9-7.el7_6, As jack mentioned steps in the #comment 3, I'm able to see the CA's internal OCSP is coming up.

Marking this bug as verified.

Comment 10 Amol K 2019-01-11 07:27:53 UTC
Steps which followed to verify this BZ:
- Install standalone CA
- Install standalone KRA
- Modify KRA's server.xml file
  - Remove "ocspResponderURL=*" and "ocspSigingCertNickname=*"
  - Set enableOCSP=true
- Restart the KRA
- While restarting KRA, put tail on CA's debug log. KRA subsystem pick up OCSP URI (CA's internal OCSP URI) from certificates AIA extension.

Comment 12 errata-xmlrpc 2019-01-29 17:21:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0167


Note You need to log in before you can comment on or make changes to this bug.