You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -157,4 +158,18 @@ Setting `OTEL_JAVAAGENT_LOGGING=none` or `ELASTIC_OTEL_JAVAAGENT_LOG_LEVEL=OFF`
157
158
158
159
Setting `OTEL_JAVAAGENT_LOGGING=application` will disable EDOT agent logging feature and attempt to use the application logger.
159
160
As [documented here in the upstream documentation](https://opentelemetry.io/docs/zero-code/java/agent/configuration/#java-agent-logging-output),
160
-
support for this depends on the application and logging libraries used.
161
+
support for this depends on the application and logging libraries used.
162
+
163
+
## Exporter certificate verification
164
+
165
+
The EDOT Java agent provides the ability to toggle the exporter endpoint certificate verification with the `ELASTIC_OTEL_VERIFY_SERVER_CERT` configuration option (`true` by default).
166
+
167
+
When the endpoint certificate is not trusted by the JVM where the agent runs, the common symptom is security-related exceptions with the following message: `unable to find valid certification path to requested target`.
168
+
169
+
This is common in the following scenarios:
170
+
- When endpoint uses a self-signed certificate not trusted by the JVM
171
+
- When the certificate authority used by the endpoint certificate is not trusted by the JVM
172
+
173
+
One solution is to add the certificate or certificate authority to the JVM trust store, which requires modifying the JVM trust store.
174
+
175
+
If trust store modification is not possible or not practical, for example when troubleshooting or working with a local deployment, certificate verification can be disabled by setting `ELASTIC_OTEL_VERIFY_SERVER_CERT` to `false`. This however need to be evaluated carefully as it lowers the communication security and could allow for man-in-the-middle attacks where the data could be intercepted between the agent and the collector endpoint.
Copy file name to clipboardExpand all lines: docs/reference/edot-sdks/java/migration.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,12 @@ With EDOT, application logs are automatically captured and sent by default.
180
180
181
181
This feature is controlled by `otel.logs.exporter`, which is set to `otlp` by default. You can turn it off by setting `otel.logs.exporter` to `none`.
182
182
183
+
### `verify_server_cert`
184
+
185
+
The Elastic [`verify_server_cert`](apm-agent-java://reference/config-reporter.md#config-verify-server-cert) option allows you to disable server certificate validation.
186
+
187
+
With EDOT, the equivalent configuration option is `ELASTIC_OTEL_VERIFY_SERVER_CERT` (default `true`), see [configuration](./configuration.md#exporter-certificate-verification) for details.
0 commit comments