APM RUM agent not connecting APM Server over https

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 :slight_smile:

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 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?

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: HTTP status: 0 zone.js:2969 POST net::ERR_CERT_COMMON_NAME_INVALID

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

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

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.