JMX Exporter
GitHubToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

SSL

HTTP mode supports configuring SSL (HTTPS) access using either a JKS or PKCS12 format keystore.

Notes

  • Keystore type is dependent on the Java version
  • Exporter YAML configuration overrides System properties

Configuration (using Exporter YAML)

  1. Add configuration to your exporter YAML file
httpServer:
  ssl:
    keyStore:
      filename: localhost.jks
      password: changeit
    certificate:
      alias: localhost
  1. Create a keystore and add your certificate

Configuration (using System properties)

  1. Add configuration to your exporter YAML file
httpServer:
  ssl:
    certificate:
      alias: localhost
  1. Add your certificate to the application’s Java keystore

The exporter YAML file alias should match the certificate alias of the certificate you want to use for the HTTPS server.

  1. Define the application system properties for the Java keystore
-Djavax.net.ssl.keyStore=<keystore file> -Djavax.net.ssl.keyStorePassword=<keystore password>

Complex YAML Configuration Examples

Integration tests provide complex/concrete examples of application and YAML configuration files.