Created
August 19, 2015 22:33
-
-
Save ricston-git/280eb092679ad5424130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<http:listener-config name="httpsServerConnectorMutualAuth" | |
host="localhost" port="8083" doc:name="HTTP Listener Configuration" | |
protocol="HTTPS"> | |
<tls:context> | |
<tls:trust-store type="jks" path="server-truststore" | |
password="mulepass" /> | |
<tls:key-store type="jks" path="server-keystore" | |
keyPassword="mulepass" password="mulepass" /> | |
</tls:context> | |
</http:listener-config> | |
<http:request-config protocol="HTTPS" | |
name="httpsClientConnectorMutualAuth" host="localhost" port="8083" | |
doc:name="HTTP Request Configuration"> | |
<tls:context> | |
<tls:trust-store path="client-truststore" password="mulepass" | |
type="jks" /> | |
<tls:key-store type="jks" path="client-keystore" | |
keyPassword="mulepass" password="mulepass" /> | |
</tls:context> | |
</http:request-config> | |
<flow name="httpsClientMutualAuth"> | |
<http:listener path="mutualAuth" config-ref="httpServerConnector" | |
doc:name="HTTP" /> | |
<logger message="sending request from https client to https server (mutual auth)..." | |
level="INFO" doc:name="Logger" /> | |
<http:request config-ref="httpsClientConnectorMutualAuth" | |
path="httpsServer" method="GET" doc:name="HTTP" /> | |
</flow> | |
<flow name="httpsServerMutualAuth"> | |
<http:listener path="httpsServer" config-ref="httpsServerConnectorMutualAuth" | |
doc:name="HTTP" /> | |
<logger message="accessed https server successfully - via mutual authentication!" level="INFO" | |
doc:name="Logger" /> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment