Error while defining Consumer WS in IS

Hi we are trying to consume Web Service over HTTPS , using certificates but we’re getting the following error , “server certificate was rejected by Chain Verifier”

Basically that error says, you dont trust the Server you are trying to post.
So may be you dont have the CA certificate of that server you are posting.
If thats the case you need to install the CA certificate in your trusted root directory.

But there was a setting about ignoring the certificates and trust by default

and in this case It should work at least but not works fine ;

watt.security.xxx.trustbyDefault=true;
watt.security.xxx.ignoreExpiredCertificates=true;