Tag: wso2 am

错误 – ListenerManager无法初始化httpstransport侦听器 – WSO2

我开始使用WSO2 API Manager 1.8的新副本,并且无缘无故地获得以下错误。 ERROR – ListenerManager Couldn’t initialize the httpstransport listener 我怎样才能解决这个问题?

SSL连接导致javax.net.ssl.SSLException:证书中的主机名不匹配(WSO2 Api Manager / Tomcat)

我目前正在设立一个docker化的WSO Api Manager。 我们的域名获得了通配符证书。 我成功地将其转换为java密钥库并替换了两个jks文件。 当我打开API管理器时,我没有收到ssl警告,浏览器将我的连接标记为安全。 当我尝试登录时出现错误: 在我得到的日志文件中: TID: [-1234] [] [2017-03-24 11:37:55,305] INFO {org.apache.axis2.transport.http.HTTPSender} – Unable to sendViaPost to url[https://localhost:9443/services/AuthenticationAdmin] {org.apache.axis2.transport.http.HTTPSender} javax.net.ssl.SSLException: hostname in certificate didn’t match: != at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:341) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:277) 看起来服务器正在尝试与localhost建立SSL连接。 那么如何将匹配的证书添加到密钥库以允许localhost访问? 非常感谢!

身份validation流程中grant_type = client_credentials和grant_type =密码之间的区别?

我想了解Authentication或OAuth2 Flow概念中grant_type=client_credentials和grant_type=password之间的区别。 我关注以下网站: http://help.atavist.com/api:authentication http://apiwiki.poken.com/authentication/oauth2 就JavaScript开发中使用gran_type ,我以not secure方式设定grant_type=password 。 但我还是有些人可以帮助理解这个概念。 我还观察到grant_type=client_credentials不提供“ refresh_token ”,它只提供access_token ,其中grant_type=password提供access_token和refresh_token 。 希望得到详细的解释。 我正在为OAuth2使用WSO2 API Manager进行应用程序开发

javax.net.ssl.SSLPeerUnverifiedException:主机名与对等方提供的证书主题不匹配

我在stackoverflow上关注了许多链接并尝试了许多解决方案,但它们都没有为我工作。 我正在使用WSO2 API manager 1.9.1版。 我正面临以下错误: Exception in thread “main” javax.net.ssl.SSLPeerUnverifiedException: Host name ‘XXXXXXXXX’ does not match the certificate subject provided by the peer (CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:465) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:395) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at […]