We have a Teiid 12.3 server running which is configured using ssl. We are able to connect this teiid server using tools like pentaho etl, squirrel sql client, Tableau etc. we are using trustore file to connect these tools. But we are not able to connect Teiid server in Apache NIfi. We tried the following ways to include trustore –
Adding the trustore in the run nifi.bat
- set JAVA_ARGS=
-Dorg.apache.nifi.bootstrap.config.log.dir=%NIFI_LOG_DIR%
-Dorg.apache.nifi.bootstrap.config.pid.dir=%NIFI_PID_DIR%
-Dorg.apache.nifi.bootstrap.config.file=%BOOTSTRAP_CONF_FILE%
-Djavax.net.ssl.trustStore=teiid-dummy.truststore
-Djavax.net.ssl.trustStorePassword=1234
- set JAVA_ARGS=
Creating a
StandardSSLContextService
but we cant use this service inExecuteSQL
orQueryDatabaseTableRecord
processorsAdded trustore details in the teiid connect url --
jdbc:teiid:VDB@mms://abc123.com:443;enableTLS=true;trustStorePath=E:/nifi-1.11.4-bin/nifi-1.11.4/bin/teiid_dummy.truststore;trustStorePassword=1234
- Errors: TEIID 200020 Error establishing socket to host and port. Sun.security.validator.validatorException : PKIX path building failed:
configured trustore in below file as well but no use giving same error.
File Name : Nifi.properties
nifi.security.truststore==E:\nifi-1.11.4-bin\nifi-1.11.4\bin\teiid-dummy.truststore
nifi.security.truststoreType=jks
nifi.security.truststorePasswd=1234
File name: run_nifi.bat
set JAVA_ARGS=-Dorg.apache.nifi.bootstrap.config.log.dir=%NIFI_LOG_DIR% -Dorg.apache.nifi.bootstrap.config.pid.dir=%NIFI_PID_DIR% -Dorg.apache.nifi.bootstrap.config.file=%BOOTSTRAP_CONF_FILE% -Djavax.net.ssl.trustStore=teiid3-ssl.truststore -Djavax.net.ssl.trustStorePassword=1234