Skip to content

Instantly share code, notes, and snippets.

@ricston-git
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricston-git/8b8dae0b68b80a76df9d to your computer and use it in GitHub Desktop.
Save ricston-git/8b8dae0b68b80a76df9d to your computer and use it in GitHub Desktop.
<http:listener-config name="httpsServerConnectorOneWaySSL"
host="localhost" port="8082" doc:name="HTTP Listener Configuration"
protocol="HTTPS">
<tls:context>
<tls:key-store type="jks" path="server-keystore"
keyPassword="mulepass" password="mulepass" />
</tls:context>
</http:listener-config>
<http:request-config protocol="HTTPS"
name="httpsClientConnectorOneWaySSL" host="localhost" port="8082"
doc:name="HTTP Request Configuration">
<tls:context>
<tls:trust-store path="client-truststore" password="mulepass"
type="jks" />
</tls:context>
</http:request-config>
<flow name="httpsClientOneWaySSL">
<http:listener path="oneWaySSL" config-ref="httpServerConnector"
doc:name="HTTP" />
<logger message="sending request from https client to https server (one way ssl)..."
level="INFO" doc:name="Logger" />
<http:request config-ref="httpsClientConnectorOneWaySSL"
path="httpsServer" method="GET" doc:name="HTTP" />
</flow>
<flow name="httpsServerOneWaySSL">
<http:listener path="httpsServer" config-ref="httpsServerConnectorOneWaySSL"
doc:name="HTTP" />
<logger message="accessed https server successfully - via one way ssl!" level="INFO"
doc:name="Logger" />
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment