ssl - How to use trust store with pentaho Data Integration / Rest Client? -


i'm using pentaho data integration (kettle). goal consume existing rest api https. achieve this, use rest client provided pdi.

on local environment, i'm able consume api. however, once push on production server (redhat) , run job, i've got error related ssl certificate :

javax.net.ssl.sslhandshakeexception: sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target 

to provide target certificate, i've first added in new keystore using keytool [in /home/user/] :

keytool -importcert -keystore spoc.truststore -alias spoc-preprod  -file cert.crt -noprompt 

to make pdi use truststore, i've configured rest client :

rest client ssl truststore configuration

once pushed related transformation in production , run job, i've got different error :

keystore tampered with, or password incorrect      @ org.pentaho.di.trans.steps.rest.rest.setconfig(rest.java:274)     @ org.pentaho.di.trans.steps.rest.rest.init(rest.java:483)     @ org.pentaho.di.trans.step.stepinitthread.run(stepinitthread.java:65)     @ java.lang.thread.run(thread.java:662) caused by: java.io.ioexception: keystore tampered with, or password incorrect         @ sun.security.provider.javakeystore.engineload(javakeystore.java:771)         @ sun.security.provider.javakeystore$jks.engineload(javakeystore.java:38)         @ java.security.keystore.load(keystore.java:1185)         @ org.pentaho.di.trans.steps.rest.rest.setconfig(rest.java:249)         ... 3 more caused by: java.security.unrecoverablekeyexception: password verification failed         @ sun.security.provider.javakeystore.engineload(javakeystore.java:769)         ... 6 more 

i'm sure path of keystore i've provided (file not found exception if input dummy path), , i'm more sure password.

after 2 days of search, don't find similar problem on internet. that's why i'm needing :)

nans

i know i'm late, had same problem few days ago. solved using default password keystore, this answer explains, changeit.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -