2017-12-07 12 views
0

TLS v1.2로 https 요청을 만들고 싶습니다. 다음과 같이 내가 속성을 발견TLS v1.2 및 SSL 인증서 확인없이 Mule에서 Https 요청을 생성하는 데 문제가 있습니다.

<tls:context name="trustallcertificate" enabledProtocols="TLSv1.2"> 
    <tls:trust-store insecure="true" /> 
</tls:context> 

을하지만 <http:listener-config name="globalConfig" protocol="HTTPS" host="localhost" port="8443">

을 위해하는 아웃 바운드 요청에 대한 유사한 구성이 있습니다. 나는 '<spring:property name="sslType" value="TLSv1.2"/>' 으로 시도하지만 다음과 같은 오류가 와서 :

org.mule.api.config.ConfigurationException : 라인 127 XML 문서의 ConnectToIssuer.xml에서 이 유효하지 않습니다; 중첩 예외는 입니다. org.xml.sax.SAXParseException; lineNumber : 127; columnNumber : 54; cvc-complex-type.2.4.a : 요소 'spring : property'로 시작하는 잘못된 콘텐츠가 발견되었습니다. '{ "http://www.mulesoft.org/schema/mule/https": tls-protocol-handler} 중 하나' 이 필요합니다. (org.mule.api.lifecycle.InitialisationException)

답변

0

예, 당신은 글로벌 request-config 대신을 구성해야거야 listener-config 같은 :

<http:request-config name="HTTP_Request_Configuration" ... > 
    <tls:context name="trustallcertificate" enabledProtocols="TLSv1.2"> 
     <tls:trust-store insecure="true" /> 
    </tls:context> 
</http:request-config> 

그리고 당신의 흐름에 요청합니다

<flow name="someflow"> 
    ... 
    <http:request config-ref="HTTP_Request_Configuration" .../> 
    ... 
</flow>