About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
How To
Summary
How to configure InfluxDB SSL and Integration with DPM?
Objective
In this article, we'll configure the SSL for InfluxDB service to manage the encrypted communication.
Steps
We need to follow the below steps to enable SSL for InfluxDB
InfluxDB setup & configuration
We’ll create self-sign SSL certificates using the below commands:
openssl genrsa -out `hostname -f`.key 2048 openssl req -new -sha256 -key `hostname -f`.key -out `hostname -f`.csr openssl x509 -req -days 365 -in `hostname -f`.csr -signkey `hostname -f`.key -out `hostname -f`.crt
Then we’ll update the influxDB configuration file (/etc/influxdb/influxdb.conf) by setting:
https-enabled to true https-certificate to /etc/ssl/<hostname>.crt https-private-key to /etc/ssl/<hostname>.key
And then we need to restart the InfluxDB service:
systemctl restart influxdb
We can run the below command to test the connection over SSL using influx utility:
influx -ssl -unsafeSsl -host <domain_name>.com
Integration with DPM
Now we'll update the DPM timeseries-app.properties file with the below content:
# Example influx db url: http://influxhost:8500 db.url=https://influx:8086 db.name=<db> db.user=<user> db.password=<pass> db.retentionPolicy=autogen # Example influx app db url: http://influxhost:8500 dpm.app.db.url=https://influx:8086 dpm.app.db.name=<db> dpm.app.db.user=<user> dpm.app.db.password=<pass> dpm.app.db.retentionPolicy=autogen
Finally, import the influx DB SSL certificate in DPM truststore using the below command and you need to restart the DPM service:
keytool -import -file <server.crt > -keystore <truststore> -alias influxdb
Document Location
Worldwide
[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSM21Y","label":"IBM StreamSets"},"ARM Category":[{"code":"","label":""}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]
Was this topic helpful?
Document Information
Modified date:
16 March 2025
UID
ibm17186335
Manage My Notification Subscriptions