Mule SQS连接器抛出javax.net.ssl.SSLPeerUnverifiedException:peer未经过身份验证

时间:2014-09-19 04:46:37

标签: java ssl mule mule-studio

使用Mule SQS Connector发送和接收消息时出现问题。 Mule启动正常,但抛出javax.net.ssl.SSLPeerUnverifiedException:当我尝试发送或接收消息时,peer not authenticated exception。 我正在使用其他https outbounds的密钥库。 这是我的流程

<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>

1 个答案:

答案 0 :(得分:1)

根据这个问题Getting "peer not authenticated" exception on Amazon SQS我想知道您使用的JRE是什么?你有最近的Oracle JRE吗?

根据此博文http://myjavacodeworld.blogspot.ca/2012/12/javaxnetsslsslpeerunverifiedexception.html,您似乎可以使用-Dcom.amazonaws.sdk.disableCertChecking=true来绕过此问题。