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 1390321 - two-step externally-signed CA installation fails due to missing AuthorityID
Summary: two-step externally-signed CA installation fails due to missing AuthorityID
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: RHCS Maintainers
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On: 1378275
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-31 17:04 UTC by Tom Lavigne
Modified: 2016-12-06 17:05 UTC (History)
11 users (show)

Fixed In Version: pki-core-10.3.3-12.el7_3
Doc Type: Bug Fix
Doc Text:
Previously, during two-step installation, Certificate System attempted to perform a lightweight CA key replication because the CA signing key was not available. This caused the installation to fail because lightweight CA key replication attempts to read the CA's UUID, which was not yet assigned at this point. With this update, two-step installation does not attempt to perform a lightweight CA key replication, and can now complete successfully.
Clone Of: 1378275
Environment:
Last Closed: 2016-12-06 17:05:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
debug_logs (113.38 KB, text/plain)
2016-11-09 06:11 UTC, Geetika Kapoor
no flags Details
HSM_test_config (3.37 KB, text/plain)
2016-11-09 06:12 UTC, Geetika Kapoor
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2881 0 normal SHIPPED_LIVE pki-core bug fix update 2016-12-06 22:00:37 UTC

Description Tom Lavigne 2016-10-31 17:04:04 UTC
This bug has been copied from bug #1378275 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 4 Geetika Kapoor 2016-11-04 05:20:39 UTC
Hi Fraser,

Is it okay to test this bug with HSM and non HSM machine and LunaSA machine?
Customer generally use this with HSM and LunaSA machines.

Thanks
Geetika

Comment 5 Fraser Tweedale 2016-11-04 07:29:05 UTC
Geetika,

It is a good idea to very with HSM.

Thanks!

Comment 6 Geetika Kapoor 2016-11-08 08:00:56 UTC
Hi Fraser,

I tried ExternalCA installation with LunaSA (HSM) and i see below exception::

[08/Nov/2016:02:57:42][http-bio-23142-exec-3]: CertInfoProfile: Unable to populate certificate: Unable to get ca certificate: Unable to initialize, java.io.IOException: extra DER value data (constructor)
[08/Nov/2016:02:57:42][http-bio-23142-exec-3]: Unable to create local certificate: Unable to get ca certificate: Unable to initialize, java.io.IOException: extra DER value data (constructor)
[08/Nov/2016:02:57:42][http-bio-23142-exec-3]: configCert() exception caught:java.io.IOException: Unable to create local certificate: Unable to get ca certificate: Unable to initialize, java.io.IOException: extra DER value data (constructor)
java.io.IOException: Unable to create local certificate: Unable to get ca certificate: Unable to initialize, java.io.IOException: extra DER value data (constructor)
	at com.netscape.cms.servlet.csadmin.CertUtil.createLocalCert(CertUtil.java:602)
	at com.netscape.cms.servlet.csadmin.CertUtil.createLocalCert(CertUtil.java:417)
	at com.netscape.cms.servlet.csadmin.ConfigurationUtils.configCert(ConfigurationUtils.java:2728)
	at org.dogtagpki.server.rest.SystemConfigService.processCert(SystemConfigService.java:490)
	at org.dogtagpki.server.rest.SystemConfigService.processCerts(SystemConfigService.java:387)
	at org.dogtagpki.server.rest.SystemConfigService.configure(SystemConfigService.java:187)
	at org.dogtagpki.server.rest.SystemConfigService.configure(SystemConfigService.java:121)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280)
	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234)
	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:221)
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:288)
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:285)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
	at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:320)
	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:175)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:297)
	at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
	at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191)
	at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:288)
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:285)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
	at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:320)
	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:260)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
	at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191)
	at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: Unable to get ca certificate: Unable to initialize, java.io.IOException: extra DER value data (constructor)
	at com.netscape.cms.profile.def.ValidityDefault.populate(ValidityDefault.java:323)
	at com.netscape.certsrv.profile.CertInfoProfile.populate(CertInfoProfile.java:100)
	at com.netscape.cms.servlet.csadmin.CertUtil.createLocalCert(CertUtil.java:546)
	... 68 more
Caused by: Unable to initialize, java.io.IOException: extra DER value data (constructor)
	at com.netscape.ca.CertificateAuthority.getCACert(CertificateAuthority.java:1494)
	at com.netscape.cms.profile.def.ValidityDefault.populate(ValidityDefault.java:315)
	... 70 more
Caused by: java.security.cert.CertificateException: Unable to initialize, java.io.IOException: extra DER value data (constructor)
	at netscape.security.x509.X509CertImpl.<init>(X509CertImpl.java:186)
	at netscape.security.x509.X509CertImpl.<init>(X509CertImpl.java:160)
	at com.netscape.ca.CertificateAuthority.getCACert(CertificateAuthority.java:1486)
	... 71 more
[08/Nov/2016:02:57:42][http-bio-23142-exec-3]: Error in setting certificate names and key sizes: java.io.IOException: Unable to create local certificate: Unable to get ca certificate: Unable to initialize, java.io.IOException: extra DER value data (constructor)

Comment 7 Geetika Kapoor 2016-11-09 06:11:06 UTC
Created attachment 1218823 [details]
debug_logs

Comment 8 Geetika Kapoor 2016-11-09 06:12:52 UTC
Created attachment 1218824 [details]
HSM_test_config

Comment 9 Ade Lee 2016-11-10 15:00:19 UTC
The failure here has nothing to do with Fraser's Authority ID code (yet).
Basically, we are attempting to import the new CA certificate, and this is failing because of some kind of parsing error.

How did you sign the CSR?  Please attach the CSR, Cert and chain.

Comment 10 Geetika Kapoor 2016-11-10 15:07:15 UTC
Hello Ade,

I get it signed using nssdb.I saw this behavior earlier also once and here is the reference BZ https://bugzilla.redhat.com/show_bug.cgi?id=1378539

1. csr:

-----BEGIN NEW CERTIFICATE REQUEST-----
MIICxzCCAa8CAQAwUDEQMA4GA1UEChMHRVhBTVBMRTEbMBkGA1UECwwSRnJhc2Vy
X2NvbmZpZ190ZXN0MR8wHQYDVQQDExZDQSBTaWduaW5nIENlcnRpZmljYXRlMIIB
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArgHigwYQjBkodi+wnTnZ9n4z
/ToVBdwKknV0ytFPnZ5MPfRTdDpI1qwcsZJm8XlFwcGUOiyy32w+v6AO2WdTnH2Z
Ccb5kxmTtrMc22IF7KPeTomMgMCzlyhQRPpOCFktgumXIL5Lvg+b2TDtyEFih0+e
JGS0hJ4QbFOVhN0yvvwF9TTtHUpBEC7Xhz3fYMdJuu1T5Ud0+gLLh4KMlzAjR2VO
rJIzp3Z+mg6Sa8S4rb+JtpOeEsaO6710Ju5Uig+FoY3WUWc6qLcrZjqO26slUXWG
xEEX4Fq6rumrTdeMhpvI4KjUA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ZZAj0IOz6bxqR5x
euwO9PwtEgT7zhr+Oqj5JrQG3qvtGFyC1HtTzIT9kJzt7jkGcn2OGT8rS7n0OyKk
SyeaCZMLBQIDAQABozMwMTARBglghkgBhvhCAQEEBAMCAAcwDwYDVR0TAQH/BAUw
AwEB/zALBgNVHQ8EBAMCAgQwDQYJKoZIhvcNAQELBQADggEBABDrkZhYJYZ2SJ9L
6kB46DT5isx10/MIG5zBUhfuu02Oi3TiET+3enRDKvCc39t7DkIbWj7tAJd4WtDd
u51CWJSL4+bQJi/BNl+zXST/SqYURJ3eDb0LXn0ZWqXnrq0sW0FzkliqMOkO695q
GS6oVnnk8JRpFxsUfdO9rWYdI27mIzsn+QzJDjuptEqKNIZXPKtVHM5IwPldbLb+
4CmrKc2PO+opAHRno678SJvbGPcsKwU0o5nC99JNy+MCWYCwDEk91ZkESkTd0WB1
0Jnxs4hLgdqsRqmchaoHMnJv0BrnLPALZEx5JUckH2KyKVXPpzipT1Uhp3vx+4G9
8y++QfI=
-----END CERTIFICATE-----

Comment 11 Ade Lee 2016-11-12 06:52:47 UTC
I asked Endi and Christina to look into this.

Comment 12 Geetika Kapoor 2016-11-14 17:08:08 UTC
Build:
pki-ca.noarch                                                                    10.3.3-14.el7_3

No NPE is seen and installation went fine with LunaSA(HSM)
Although one NPE is experienced while installing SubCA using this externalCA so filed a BZ for same
https://bugzilla.redhat.com/show_bug.cgi?id=1392827

Comment 14 errata-xmlrpc 2016-12-06 17:05:12 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://rhn.redhat.com/errata/RHBA-2016-2881.html


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