In some cases, you may need to use a custom truststore or keystore in a Job running on a cloud engine. For example, you may need to access a web server using HTTPS using a self-signed certificate, or an HTTPS web server requesting a client certificate (mutual authentication).
This article covers how to use a custom truststore or keystore in a cloud Job.
Procedure
Create a custom truststore or keystore using Keytool or a tool such as KeyStore Explorer.
Upload these two resources to the cloud:
A file that is the truststore (mycacerts.jks below)
A file that is the keystore (mykeystore.jks below)
In the Job, define two context variables: context.resource_file_truststore and context.resource_file_keystore.
Use these two context variables in the tSetKeyStore component:
Publish the Job to the cloud; then, in the Flow Builder, set the parameters to the uploaded resources: