I’m trying to call a external webservice, over https.
My progress on above requirement is -
To create a self signed cert(using a tool) .pfx.
extract the private key and cert from above .pfx
Create the keystore with private key and cert
share only cert with partner
Configure the ws consumer end point alias with keystore of above #3
Now, I’m stuck at #5, I’m not sure if I created the keystore right or not.
P.S: (#3 - Instead of adding an entry in the current keystore, I need to create new keystore as the pwd for the old is lost… any suggestion retrieve the pwd is also helpful )
Hi as173d,
I can use openssl or keytool. please suggest one which works good with webMethods
From your requirement it looks like it is two way SSL handshake. If you were able to add private key to keystore then it would have given you some key alias for your key entry.
When i have done that it gave me key alias as “1”.
Now in your consumer service in Auth section you need to enter the value of key alias an keystore alias. It should work.
You were getting error while loading the keystore. It happens most of the time either you have not entered the correct keystore password or did not use the correct keytool command to add private key to keystore.
Following is the command to add private key to keystore.
Hi Naidu,
I do not understand why this command is not working for you. I’ve also done it on linux environment using java 1.6 without any issue and without any additional step.just type keytool and press enter and see what all options it tells you.
When i did the same it showed me several options along with the one mentioned below.