I have a problem sending and receiving messages using Mule SQS Connector. Mule starts ok but throws javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated exception when i try to send or receive messages. I am using keystores for other https outbounds. Here is my flow
<sqs:config name="Amazon_SQS" accessKey="${AMAZON.ACCESS.KEY}"
secretKey="${AMAZON.SECRET.KEY}" queueName="${AMAZON.QUEUE.NAME}"
doc:name="Amazon SQS">
</sqs:config>
<flow name="TestFlow" doc:name="TestFlow">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="8081" path="post" doc:name="HTTP" />
<set-payload
value="#['hello']"
doc:name="Set Payload" />
<json:object-to-json-transformer
doc:name="Object to JSON" />
<sqs:send-message config-ref="Amazon_SQS" doc:name="Amazon SQS"/>
</flow>
Per this question Getting "peer not authenticated" exception on Amazon SQS I'm wondering what JRE are you using? Do you have a recent Oracle JRE?
Per this blog post http://myjavacodeworld.blogspot.ca/2012/12/javaxnetsslsslpeerunverifiedexception.html , it seems you could use -Dcom.amazonaws.sdk.disableCertChecking=true
to bypass the issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.