Bug 1377860

Summary: pkispawn of kra, ocsp and tks in a shared tomcat should check for the subsystem cert nickname validity
Product: Red Hat Enterprise Linux 7 Reporter: Asha Akkiangady <aakkiang>
Component: pki-coreAssignee: RHCS Maintainers <rhcs-maint>
Status: CLOSED UPSTREAM QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: mharmsen
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-24 01:36:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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