@Benjamin Bouret
The invokeHTTP processor would require you to use a SSL context service when communicating with a secure (https) endpoint. The SSLContext service can be setup with only a truststore.jks if this is only a 1-way TLS connection that does not require client authentication.
-
You should be able to use openssl to get the complete public certificate chain from the target secured endpoint.
From command line execute following command:
Openssl s_client -connect <hostname>:<port> -showcerts
-
The return from this command will include one or more public certificates.
each public certificate will start with and end with following:
-----BEGIN CERTIFICATE-----
.....
-----END CERTIFICATE-----
-
Copy each certificate including the above two lines and write each to separate file with a .crt extension.
for example:
CA-1.crt
-
Then import each of these public certificates in to the truststore you want to use in your SSLContext service as follows:
# keytool -import -alias <unique Alias name 1> -file CA-1.crt -keystore truststore.jks
# keytool -import -alias <unique Alias name 2> -file CA-2.crt -keystore truststore.jks
etc...
-
Make your your NiFi service user can read this file where ever you decide to place on each of your NiFi nodes.
-
Thank you,
Matt
-
If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.