我无法通过HTTPS从mule访问openAM中的令牌API。使用Postman我可以访问令牌API,但是从mule代理,它无法正常工作。
我得到以下错误:
Message : Error sending HTTP request. Element : null
Exception stack is: Error sending HTTP request.
(org.mule.api.MessagingException)
sun.security.util.HostnameChecker.matchDNS(null:-1)
sun.security.util.HostnameChecker.match(null:-1)
sun.security.ssl.X509TrustManagerImpl.checkIdentity(null:-1)
sun.security.ssl.X509TrustManagerImpl.checkIdentity(null:-1)
sun.security.ssl.X509TrustManagerImpl.checkTrusted(null:-1)
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(null:-1)
sun.security.ssl.ClientHandshaker.serverCertificate(null:-1)
sun.security.ssl.ClientHandshaker.processMessage(null:-1)
sun.security.ssl.Handshaker.processLoop(null:-1)
sun.security.ssl.Handshaker$1.run(null:-1)
sun.security.ssl.Handshaker$1.run(null:-1)
java.security.AccessController.doPrivileged(null:-2)
sun.security.ssl.Handshaker$DelegatedTask.run(null:-1)
org.glassfish.grizzly.ssl.SSLUtils.executeDelegatedTask(SSLUtils.java:274)
org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeStep(SSLBaseFilter.java:699)
org.glassfish.grizzly.ssl.SSLFilter.doHandshakeStep(SSLFilter.java:332)
org.glassfish.grizzly.ssl.SSLBaseFilter.doHandshakeStep(SSLBaseFilter.java:613)
org.glassfish.grizzly.ssl.SSLBaseFilter.handleRead(SSLBaseFilter.java:318)
com.ning.http.client.providers.grizzly.SwitchingSSLFilter.handleRead(SwitchingSSLFilter.java:74)
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526)
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.run0(FlowWorkManagerIOStrategy.java:134)
org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.access$100(FlowWorkManagerIOStrategy.java:31)
org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy$WorkerThreadRunnable.run(FlowWorkManagerIOStrategy.java:157)
(3 more...)
请帮我解决此问题。
答案 0 :(得分:0)
我通过添加以下代码解决了问题 < tls:context name =“test”> < tls:trust-store insecure =“true”/> < / TLS:上下文>