Bug 1377860 - pkispawn of kra, ocsp and tks in a shared tomcat should check for the subsystem cert nickname validity
Summary: pkispawn of kra, ocsp and tks in a shared tomcat should check for the subsyst...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: RHCS Maintainers
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 20:10 UTC by Asha Akkiangady
Modified: 2018-04-24 01:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-24 01:36:45 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Asha Akkiangady 2016-09-20 20:10:50 UTC
Description of problem:
When a wrong subsystem cert nickname is provided in the pkispawn input file for a shared tomcat instance, it should error out.

Version-Release number of selected component (if applicable):
pki-server-10.3.3-10.el7

How reproducible:


Steps to Reproduce:
1. pkispwan a CA instance with pki_subsystem_nickname=casubsystemcert

# certutil -L -d /var/lib/pki/pki-master/alias/ | grep casubsystemcert
casubsystemcert                                              u,u,u

2. pkispawn a kra instance in the shared tomcat with an in-correct subsystem cert nickname, pki_subsystem_nickname=kra3subsystemcert

Actual results:
pkispawn is successful.

CS.cfg has:
cloning.subsystem.nickname=kra3subsystemcert
kra.cert.subsystem.nickname=casubsystemcert

Expected results:
pkispawn should error out with a message that nickname kra3subsystemcert is not found.

Additional info:
The same problem persist for ocsp and tks as well.

pkispawn of TPS subsystem fails to install and throws following correct error message when wrong nickname is provided.
ConfigurationUtils: getSubsystemCert: nickname=tps1subsystemcert
org.mozilla.jss.crypto.ObjectNotFoundException

Comment 2 Matthew Harmsen 2016-09-26 18:26:10 UTC
Upstream ticket:
https://fedorahosted.org/pki/ticket/2477

Comment 3 Matthew Harmsen 2018-04-24 01:36:45 UTC
Per RHEL 7.5.z/7.6/8.0 Triage:

alee: close RHEL bug CLOSED UPSTREAM, keep upstream ticket in FUTURE


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