Configuration HTTPS
For Https configuration we should define a global connector and provide
keystore.
To create a global connector,click on global
Elements tab->Create->Connectors->HTTP/HTTPS.
To configure keystore. Genearate a keystore using the keytool. Go to
command prompt and type the command.
keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -
keysize 2048
Mule-Config looks like below.
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:https="http://www.mulesoft.org/schema/mule/https"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:core="http://www.mulesoft.org/schema/mule/core" version="EE-3.3.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=«
http://www.mulesoft.org/schema/mule/https
http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
">
<https:connector name="Https_connector" cookieSpec="netscape"
validateConnections="true"
sendBufferSize="0" receiveBufferSize="0" receiveBacklog="0" clientSoTimeout="10000"
serverSoTimeout="10000" socketSoLinger="0" proxyHostname="Https_connector" proxyPort="80"
doc:name="HTTPHTTPS">
<https:tls-key-store path="keystore.jks" keyPassword="mykeystore"
storePassword="mykeystore"/>
</https:connector>
<flow name="newFlow1" doc:name="newFlow1">
<https:inbound-endpoint exchange-pattern="request-response"
address="https://localhost:9090/HelloMule" doc:name="Inbound http" connector-
ref="Https_connector"/>
<logger message="Data Recieved from http endpoint,Payload is #[payload]" level="INFO"
doc:name="Log Payload" doc:description="Takes the payload from http endpoint and prints."/>
</flow>
</mule>

Configurare https mule