This section explains how to add SSL SelectChannelSelector in Adeptia Jetty.
Steps to add SSLSelectChannelSelector in jetty
- Go to /ServerKernel/etc/jetty folder and open the Jetty.xml file.
Add an sslContextFactory within sslContextFactory definition section as shown below.
- Define the following details within the new sslContextFactory, which you have defined:
- Path and Name of the keystore file.
- Keystore password
- Key Manager password
- Path and Name of the truststore.
- Truststore password
Now add the SslSelectChannelConnector within Connector's definition as shown below.
Enter the following details within the new SslSelectChannelConnector, which you have added.
Define the name of the sslContextFactory, which you have added.
Enter the name of SslSelectChannelConnector.
Enter the port at which you want to publish the Web Service.
If you want to authenticate the client, set the value of NeedClientAuth attribute to true.
If you want to publish more than one Web Service each on different ports, then you have to define SslSelectChannelConnector for each port.
Save the file and restart the kernel and WebRunner.