# Did someone encounter this problem when integrating with Openshift 4.2 with TLS Certificate?

**URL:** <https://community.dynatrace.com/t/did-someone-encounter-this-problem-when-integrating-with-openshift-4-2-with-tls-certificate/18986>\
**Category:** Container platforms\
**Tags:** openshift, kubernetes\
**Created:** [April 7, 2020, 9:17pm UTC](https://community.dynatrace.com/t/did-someone-encounter-this-problem-when-integrating-with-openshift-4-2-with-tls-certificate/18986 "2020-04-07T21:17:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcorreaalvarez](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jcorreaalvarez](https://community.dynatrace.com/u/jcorreaalvarez)\
**Post date:** [April 7, 2020, 9:17pm UTC](https://community.dynatrace.com/t/did-someone-encounter-this-problem-when-integrating-with-openshift-4-2-with-tls-certificate/18986/1 "2020-04-07T21:17:11Z")

</div>

Hello some one had problems integrating Dynatrace with Openshift 4.2 with TLS errors. Presenting this the following message in UI and logs,

 ![24517-1586295384025.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/1/4164db1015de129716c1f1ab153f56c0ad0f5204.png)

The integration work Ok with API Token and Bearer Token ,without Certification enable.

When try to enable this is observed Red Error and this entry on log

2020-04-01 13:38:38 UTC INFO [\<tenant\>] [KubernetesFastCheck] Fast check failed for endpoint [https://api.xxx](https://api.xxx)..xxx.com:443/api with SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [Suppressing further identical messages for 3600000 ms]

Apparently the OCP side certificate (.pem) does not present API URI.

Has anyone working this integration with Certificate OK ? Thank you!

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [April 8, 2020, 8:17pm UTC](https://community.dynatrace.com/t/did-someone-encounter-this-problem-when-integrating-with-openshift-4-2-with-tls-certificate/18986/2 "2020-04-08T20:17:39Z")

</div>

### Certificate management for Cloud Foundry, Kubernetes, and OpenShift communication

Jorge please check this [Proxy for ActiveGate — Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-activegate/configuration/set-up-proxy-authentication-for-activegate/#anchor_certificate)

The bearer token is invalid and the request has been rejected by the Kubernetes API. Verify the bearer token. **Make sure it doesn’t contain any whitespaces**. If you’re connecting to a Kubernetes cluster API via a centralized external role-based access control (RBAC) consult the documentation of the Kubernetes cluster manager.

---

<div class="post-metadata">

**Author:** ![jcorreaalvarez](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jcorreaalvarez](https://community.dynatrace.com/u/jcorreaalvarez)\
**Post date:** [April 15, 2020, 7:16pm UTC](https://community.dynatrace.com/t/did-someone-encounter-this-problem-when-integrating-with-openshift-4-2-with-tls-certificate/18986/3 "2020-04-15T19:16:25Z")

</div>

Thanks Daniel this configuration was used from beginning but the trouble detected is into

.PEM generated from OCP Cluster .

echo Q | openssl s\_client -connect google.com:443 | openssl x509 -outform PEM \> dt\_k8s\_api.pem

This may be not deliver CN and SAM fields with information valid (API hostname and IP ),only seen DNS IP..

My questions if only is somebody has same difficult.

Thanks in advance

Jorge
