Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
<inboundEndpoint name="HttpListenerEP" protocol="https" suspend="false" sequence="TestIn" onError="fault" >
    <p:parameters xmlns:p="http://ws.apache.org/ns/synapse">
        <p:parameter  name="inbound.http.port">8081</p:parameter>
        <p:parameter name="keystore">
            <KeyStore>
                <Location>repository/resources/security/wso2carbon.jks</Location>
                <Type>JKS</Type>
                <Password>wso2carbon</Password>
                <KeyPassword>wso2carbon</KeyPassword>
            </KeyStore>
        </p:parameter>
        <p:parameter name="truststore">
            <TrustStore>
                <Location>repository/resources/security/client-truststore.jks</Location>
                <Type>JKS</Type>
                <Password>wso2carbon</Password>
            </TrustStore>
        </p:parameter>
        <p:parameter name="SSLVerifyClient">require</p:parameter>
        <p:parameter name="HttpsProtocols">TLSv1,TLSv1.1,TLSv1.2</p:parameter>
        <p:parameter name="SSLProtocol">SSLV3</p:parameter>
        <p:parameter name="CertificateRevocationVerifier">
            <CertificateRevocationVerifier enable="true">
               <CacheSize>10</CacheSize>
               <CacheDelay>2</CacheDelay>
            </CertificateRevocationVerifier>
         </p:parameter>
     </p:parameters>
</inboundEndpoint>

HTTPS inbound endpoint parameters

Parameter                                                   

 

Description                                                                               

 

Required                                                              

 

inbound.http.port

The port on which the e ndpoint listener should be started .

Yes
keystore
The KeyStore location where keys are stored.Yes
truststore
The TrustStore location where keys are stored.No
SSLVerifyClient

Used when enabling mutual verification.

No
HttpsProtocols
The supporting protocols.No
SSLProtocol
The supporting SSL protocol.No
CertificateRevocationVerifier
Verifying certificates and status of certificate.No

...

For a sample that demonstrates how an HTTPS inbound endpoint can act as a dynamic https listener, see   Sample 903: HTTPS Inbound Endpoint Sample.

Worker pool configuration parameters

By default inbound endpoints share the PassThrough transport worker pool to handle incoming requests. If you need a separate worker pool for the inbound endpoint, you need to configure the following parameters:

...