Hi Supun,

You need to create the certificate for that particular hostname. Hostname
is strictly verified in products which are based on carbon 4.4.x.  There
aren't any way to disable this hostname verification.

On Tue, Sep 6, 2016 at 12:01 PM, Supun Malinga <[email protected]> wrote:

> Also, in gateway axis2.xml transport Sender, hostname verifier is
> configured..
>
> <parameter name="HostnameVerifier">AllowAll</parameter>
>
>
> On Tue, Sep 6, 2016 at 11:57 AM, Supun Malinga <[email protected]> wrote:
>
>> Hi,
>>
>> When gateway is validating token with keymanager, getting the following
>> error at gateway worker log,
>>
>> [2016-09-06 06:09:22,013]  INFO - HTTPSender Unable to sendViaPost to url[
>> https://keymanager:9443/services/APIKeyValidationService]
>> javax.net.ssl.SSLException: hostname in certificate didn't match:
>> <keymanager> != </localhost>
>> ....
>>
>> Looks like keymanager is rejecting the requests.
>> How do I allow all hostnames here?.
>>
>> In keymanager wso2server.sh I see following enabled already,
>>
>> -Dorg.opensaml.httpclient.https.disableHostnameVerification=true \
>> -Dorg.wso2.ignoreHostnameVerification=true \
>>
>> thanks,
>> --
>> Supun Malinga
>>
>
>
>
> --
> Supun Malinga
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : [email protected]
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to