# APM RUM agent not connecting APM Server over https

**URL:** <https://discuss.elastic.co/t/apm-rum-agent-not-connecting-apm-server-over-https/263835>\
**Category:** APM\
**Tags:** rum, server\
**Created:** [February 10, 2021, 6:47am UTC](https://discuss.elastic.co/t/apm-rum-agent-not-connecting-apm-server-over-https/263835 "2021-02-10T06:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram\_Dinesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_dinesh/32/83691_2.png) [@Ram\_Dinesh](https://discuss.elastic.co/u/Ram_Dinesh)\
**Post date:** [February 10, 2021, 6:47am UTC](https://discuss.elastic.co/t/apm-rum-agent-not-connecting-apm-server-over-https/263835/1 "2021-02-10T06:47:33Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

TIP 1: select at least one tag that further categorizes your topic. For example `server` for APM Server related questions, `java` for questions regarding the Elastic APM Java agent, or `ui` for questions about the APM App within Kibana.

TIP 2: Check out the [troubleshooting guide](https://www.elastic.co/guide/en/apm/get-started/current/troubleshooting.html) first. Not only will it help you to resolve common problems faster but it also explains in more detail which information we need before we can properly help you.

**Kibana version** : 7.10.1

**Elasticsearch version** : 7.10.1

**APM Server version** : 7.10.1

**APM Agent language and version** : Javascript & 5.x

**Browser version** : Chrome 87.0.4280.141

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: From Elastic Downloads Page

**Fresh install or upgraded from other version?** Fresh Install

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

We have enabled HTTPS in APM server following the documentation using self signed authority. After enabling HTTPS, post events api is failing from Javascript(angular) RUM agent. We are getting 'net::ERR\_CERT\_COMMON\_NAME\_INVALID' error in events post api. Is there any way to use SSL in APM server and avoid requesting certificate for RUM endpoint so that call between APM RUM agent and APM server succeeds?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/3/033d2ee809f64271f739ebaf9fc587dbf5a4fe8b.png)

**Steps to reproduce** :

1. Enabled SSL in apm server.
2. Add Javascript APM RUM agent to application.
3. Events API call to apm server will fail.

**Errors in browser console (if relevant)**:  
`[Elastic APM] Failed sending events! Error: https://10.17.40.74:8200/intake/v2/rum/events HTTP status: 0 zone.js:2969 POST https://10.17.40.74:8200/intake/v2/rum/events net::ERR_CERT_COMMON_NAME_INVALID`

**Provide logs and/or server output (if relevant)**:

---

<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:** [March 3, 2021, 2:48am UTC](https://discuss.elastic.co/t/apm-rum-agent-not-connecting-apm-server-over-https/263835/2 "2021-03-03T02:48:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)\
**Post date:** [March 23, 2021, 5:13pm UTC](https://discuss.elastic.co/t/apm-rum-agent-not-connecting-apm-server-over-https/263835/3 "2021-03-23T17:13:24Z")

</div>

Hi @Ram_Dinesh ,

The problem seems to be related to the SSL certificate that you are using for your APM Server and once that is fixed the browser would be able to post the data to the APM server.

RUM agent does have not any specific config related to the SSL. You would need to add the certificate manually to your OS and trust that certificate so browser can send the request without any failures.

Thanks,  
Vignesh
