0

enter image description here

firstly ,I had modified CN name by default and I tried to regenerate an Access Token,but it prompted the http error code 500. the screenshot is the error log.

Community
  • 1
  • 1
Mike
  • 419
  • 1
  • 6
  • 16

1 Answers1

0

You have 2 options.

1) Use the same hostname for CN of certificate and the hostname of the URL. (This is the ideal way to do this)

2) Disable hostname verification in Synapse like this.

Bee
  • 12,251
  • 11
  • 46
  • 73
  • I do it as your second option and It also does not work. I modified the configuration of axis2.xml in the directory repository/conf/axis2/. The detail likes this. repository/resources/security/client-truststore.jks JKS wso2carbon AllowAll – Mike Jan 11 '17 at 03:42
  • when your team use the AM and config some APIs in AM, then how you can invoke API by "HttpClient"? – Mike Jan 11 '17 at 06:26
  • I use httpclient to invoke the API and the error logs is the following: javax.net.ssl.SSLException: hostname in certificate didn't match: <14.21.6.24> != – Mike Jan 11 '17 at 06:28
  • I think I already told you this in a previous question. CN and hostname of URL should be the same. – Bee Jan 11 '17 at 06:33