Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-25702

Bad default location of jboss-cert-helper binary

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 8.0.0.GA-CR2, 8.0.0.GA
    • 8.0.0.GA-CR1
    • Insights
    • None

      In case Insights java client is using jboss-cert-helper binary to load key and certificate from /etc/pki/consumer, there is bad path to this library:

      /opt/rh/eap7/root/opt/jboss-cert-helper

      Expected path is (see [1]): 

      /opt/rh/eap8/root/opt/jboss-cert-helper

       
      Server log exception:

      14:48:38,388 DEBUG [org.jboss.eap.insights.report] (ServerService Thread Pool -- 39) Client failed, trying next: com.redhat.insights.InsightsException: I4ASR0015: SSLContext creation error
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.tls.PEMSupport.getBytesPossiblyPrivileged(PEMSupport.java:100)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.tls.PEMSupport.createTLSContext(PEMSupport.java:39)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//org.jboss.eap.insights.report.ServerStatusReportService$1.get(ServerStatusReportService.java:116)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//org.jboss.eap.insights.report.ServerStatusReportService$1.get(ServerStatusReportService.java:112)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.core.httpclient.InsightsJdkHttpClient.getHttpClient(InsightsJdkHttpClient.java:75)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.core.httpclient.InsightsJdkHttpClient.sendInsightsReport(InsightsJdkHttpClient.java:106)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.http.InsightsMultiClient.sendInsightsReport(InsightsMultiClient.java:43)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.InsightsReportController.lambda$generate$0(InsightsReportController.java:116)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//org.jboss.eap.insights.report.JBossInsightsScheduler.lambda$scheduleAtFixedRate$0(JBossInsightsScheduler.java:59)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
      	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      	at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.JBossThread.run(JBossThread.java:513)
      Caused by: java.io.IOException: Cert helper binary: /opt/rh/eap7/root/opt/jboss-cert-helper does not exists.
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.tls.CertHelper.readUsingHelper(CertHelper.java:26)
      	at com.redhat.insights@8.0.0.GA-redhat-SNAPSHOT//com.redhat.insights.tls.PEMSupport.getBytesPossiblyPrivileged(PEMSupport.java:98)
      

      [1] https://brewweb.engineering.redhat.com/brew/fileinfo?rpmID=12269132&filename=/opt/rh/eap8/root/opt/jboss-cert-helper

              ehugonne1@redhat.com Emmanuel Hugonnet
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: