# Issue with selfsigned certifcate kubernet setup

**URL:** <https://community.dynatrace.com/t/issue-with-selfsigned-certifcate-kubernet-setup/22437>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [October 30, 2019, 8:12am UTC](https://community.dynatrace.com/t/issue-with-selfsigned-certifcate-kubernet-setup/22437 "2019-10-30T08:12:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shailendra\_jain](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@shailendra\_jain](https://community.dynatrace.com/u/shailendra_jain)\
**Post date:** [October 30, 2019, 8:12am UTC](https://community.dynatrace.com/t/issue-with-selfsigned-certifcate-kubernet-setup/22437/1 "2019-10-30T08:12:02Z")

</div>

![22341-issue.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/2/22371c63e9f5598ae02fea0da456443f3d4ea4cf.png)  
Hi

I have tried setting the kubernet monitoring as per document .. but i have been always getting TLS issue for self signed certificate .. or even invalid token sometime ..

1. Using Keytool - imported the certificate in existing trusted.jks file with passwod trusted

2. Adding entry in custom.property file also .

3. Restarted all gateway/agent ..

4. Enter the kubernet URL and token but getting TLS or invalid token issues

Also tried with no certificate options also.. then getting same TLS issue ..

Note : Agent/gateway installed on same rancher-kubernet cluster node … my server is on different node.

I am able to see docker images due to agent on that node … but API/Token failing for TLS.

Q: What is right step for connection…

Q. Is it fine to use existing trsuted.jks ( i have tried even with jks file)

Q. Will not this work with self signed certificate

Q. Is certificate need to be generated on a node where agent and activeagete installed ?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 30, 2019, 9:01am UTC](https://community.dynatrace.com/t/issue-with-selfsigned-certifcate-kubernet-setup/22437/2 "2019-10-30T09:01:22Z")

</div>

We had similar issue, you have to add your ROOT CA certificate to ActiveGate, than it will accept certificate you have on Kubernetes side.

> **[Trusted root certificates for ActiveGate](https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate/configuration/configure-trusted-root-certificates-on-activegate)**
>
> Learn how to configure custom trusted root certificates on ActiveGate to establish secure SSL/TLS connections.

Sebastian

---

<div class="post-metadata">

**Author:** ![shailendra\_jain](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@shailendra\_jain](https://community.dynatrace.com/u/shailendra_jain)\
**Post date:** [December 10, 2019, 3:27pm UTC](https://community.dynatrace.com/t/issue-with-selfsigned-certifcate-kubernet-setup/22437/3 "2019-12-10T15:27:30Z")

</div>

Thanks Sebastian!! … We notice .. it does not work with rancher certificate ..But work with Kubernet directly.
