Bug 1503462 - Jolokia agent fails on certificates with spaces
Summary: Jolokia agent fails on certificates with spaces
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Hawkular
Version: 3.7.1
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Juraci Paixão Kröhling
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-18 08:05 UTC by Juraci Paixão Kröhling
Modified: 2017-10-18 08:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-18 08:09:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Juraci Paixão Kröhling 2017-10-18 08:05:00 UTC
When the CA bundle on a pod has trailing spaces, the Jolokia agent throws an exception.

See https://bugzilla.redhat.com/show_bug.cgi?id=1500464#c8

```
Could not start Jolokia agent: java.lang.IllegalStateException: Cannot use keystore for https communication: java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Illegal header: -----BEGIN CERTIFICATE-----  
```

This is a configuration issue and the proper solution is to get the cert to be made available without trailing spaces.

A workaround for the other parts dealing with the Java cert toolchain was made as part of BZ 1471251 (and related) and a similar workaround could be made for the Jolokia agent, if necessary.

This affects all versions of the Jolokia Agent included in Metrics.

Comment 1 Juraci Paixão Kröhling 2017-10-18 08:08:50 UTC
I'm closing this as WONTFIX, as this is a configuration issue. If a workaround is required, like for the linked BZs, please reopen this.


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