this is applicable in wso2 esb 4.8.1
first download the certificate file(.crt) from the service
side.
Then place it in a proper place.
Then from command line add the certificate to the ESBs .jks
store by using below command,
[user@localhost bin]$ keytool -import -file <location of
downloaded crt file>/<filename>.crt -alias myservice -keystore
<wso2HOME>/repository/resources/security/client-truststore.jks
it will ask password,
give the password,
by defaul wso2 jks password is “wso2carbon”
then give yes for the question as below,
Trust this certificate? [no]: yes
thats it .. now you can access the service.
** if you are using a ip address in url instead of using
name, you have to change axis2.xml in <carbonHOME>/repository/conf/axis2/
as below,
<parameter
name="HostnameVerifier">AllowAll</parameter>
also remember to
restart the carbon server after all these changes.
** if you still
cannot give wsdl url when the creation of the proxy service,
go to ,
and select,
specify
in-line
in the text area paste your full wsdl definitions
then you can create proxy service without any errors.