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.
This comment has been removed by the author.
ReplyDeleteHi Akila im try to connecting https service using esb 4.9.0 address endpoint.i have to do these steps but still i can't connecting with https service.can u please help figure this out ?
ReplyDeleteHi, sure i can help you. Please give more information regarding what you are going to do and the error message you get when you accessing the service endpoint
DeleteHi,i m try to connect https service using address end point,and i was done those steps you mention,but i got below error message when i test the end point.
Delete"Unable to validate SSL Certificate of https://192.168...." in addition im using .cer file instead of crt.i got this cer file from client url.
I feel Power BI is the most useful and safest tool which is compatible for solving almost any kind of IT problem irrespective of whether its complex or easy.
ReplyDeletePowerbi Read Rest