I have been trying to move a few web services on Talend RunTime from http to https. I'm able to expose the services on 9001 port using the default keystore provided by talend, but when I try use a new keystore, which has a self-signed certificate from salesforce, the services aren't exposed and I get a "java.io.IOException: Keystore was tampered with, or password was incorrect" in the logs. Below is the sequence of steps I tried, kindly help me in figuring the right way to do this, I am a newbie to https.
1) Downloaded the self-signed certificate file from salesforce (Cert1.cer)
2) Generated a key store through the console with the above certificate using the following command,
keytool -importcert -alias sfcert -file Cert1.cer -storetype jks -keystore sfkeystore.jks -storepass sfpass -keypass sfpass
3) copied the generated "sfkeystore.jks" file to /etc/keystores directory of talend
4) Modified the "org.ops4j.pax.web.cfg" file to the below contents,
with the above config, the services aren't running at all because of the password incorrect error. Is there any other additional steps i should be doing to make this work?