# APM Security

**URL:** <https://discuss.elastic.co/t/apm-security/179143>\
**Category:** APM\
**Created:** [April 30, 2019, 7:36pm UTC](https://discuss.elastic.co/t/apm-security/179143 "2019-04-30T19:36:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![behbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behbas/32/45346_2.png) [@behbas](https://discuss.elastic.co/u/behbas)\
**Post date:** [April 30, 2019, 7:36pm UTC](https://discuss.elastic.co/t/apm-security/179143/1 "2019-04-30T19:36:52Z")

</div>

Using version 6.5.1 of APM Server, ES, and Kibana. Using SearchGuard plugin for authentication. Able to login to Kibana and ES with the SearchGuard user. When Java agent (Version 1.5.0) tries to send app metrics to the APM server it gets a Connection Refuse. Do I have to provide a username and password for the APM agent to be able to connect to the APM server? If so, how? I am using javaagent command line and the following args:

java -javaagent:PATH\_TO/elastic-apm-agent-1.5.0.jar -Delastic.apm.server\_urls=https://x.x.x.x:8200 -Delastic.apm.log\_level=DEBUG -jar PATH\_TO/MY\_JAR.jar

---

<div class="post-metadata">

**Author:** ![behbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behbas/32/45346_2.png) [@behbas](https://discuss.elastic.co/u/behbas)\
**Post date:** [April 30, 2019, 7:41pm UTC](https://discuss.elastic.co/t/apm-security/179143/2 "2019-04-30T19:41:05Z")

</div>

same issue if i try with the http server\_urls:

java -javaagent:PATH\_TO/elastic-apm-agent-1.5.0.jar -Delastic.apm.server\_urls=http://x.x.x.x:8200 -Delastic.apm.log\_level=DEBUG -jar PATH\_TO/MY\_JAR.jar

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 30, 2019, 7:52pm UTC](https://discuss.elastic.co/t/apm-security/179143/3 "2019-04-30T19:52:59Z")

</div>

Is there anything in the APM Server log?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [May 1, 2019, 4:05am UTC](https://discuss.elastic.co/t/apm-security/179143/4 "2019-05-01T04:05:25Z")

</div>

Logs from both agent and APM server may help

---

<div class="post-metadata">

**Author:** ![behbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behbas/32/45346_2.png) [@behbas](https://discuss.elastic.co/u/behbas)\
**Post date:** [May 1, 2019, 7:16pm UTC](https://discuss.elastic.co/t/apm-security/179143/5 "2019-05-01T19:16:31Z")

</div>

The issue was with the SSL certificate I was using on the APM Server VIP.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 22, 2019, 3:16pm UTC](https://discuss.elastic.co/t/apm-security/179143/6 "2019-05-22T15:16:34Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
