I'm using Pentaho Data Integration (Kettle). My goal is to consume an existing REST API with HTTPS. To achieve this, I use the REST Client provided by pdi.
On my local environment, I'm able to consume this API. However, once I push it on the production server (redhat) and run the job, I've got an error related to the SSL certificate :
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
To provide the target certificate, I've first added it in a new keystore using keytool [in /home/user/] :
keytool -importcert -keystore spoc.truststore -alias spoc-preprod -file cert.crt -noprompt
To make PDI use this truststore, I've configured the rest client like so :
Rest client SSL truststore configuration
Once pushed the related transformation in production and run the job, I've got a different error :
Keystore was tampered with, or password was incorrect
at org.pentaho.di.trans.steps.rest.Rest.setConfig(Rest.java:274)
at org.pentaho.di.trans.steps.rest.Rest.init(Rest.java:483)
at org.pentaho.di.trans.step.StepInitThread.run(StepInitThread.java:65)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
at java.security.KeyStore.load(KeyStore.java:1185)
at org.pentaho.di.trans.steps.rest.Rest.setConfig(Rest.java:249)
... 3 more
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
... 6 more
I'm sure about the path of the keystore I've provided (File not found exception if I input a dummy path), and I'm even more sure about the password.
After two days of search, I don't find any similar problem on the internet. That's why I'm now needing your help :)
Nans