Using Client Authentication with Webservice


If anyone wants to enable the client authentication for Web services then "NeedClientAuth" property in the jetty.xml file should be set to "true"

There could be two scenarios while using client authentication. Below are the high level steps that need to be followed for enabling client authentication in both the scenarios. 

Scenario 1: If you are defining the web service on a secure port for the first time:

  1. Open jetty.xml file from location ".\AdeptiaSuite-6.2\AdeptiaServer\ServerKernel\etc\jetty".
  2. Create a new SSLContextFactory say SSLContextFactory2.
  3. Use that SSLContextFactory2 for HttpsConnectorB. 
  4. Enable the "NeedClientAuth" in jetty.xml by setting the value as "true" in Https Connector created for webservice.
  5. Restart Adeptia Webrunner.

Scenario 2: If the web service secure port is already defined in jetty.xml then below steps should be followed:

  1. Open jetty.xml file.
  2. Enable the "NeedClientAuth" in jetty.xml by setting the value as "true" in Https Connector defined for webservice.
  3. Restart Adeptia Webrunner.

Note: Always use separate SSL context factory while  defining the HTTPS connector for GUI, Webservice etc.

After following the above steps client authentication will be enabled for Webservice.

Have more questions? Submit a request


Article is closed for comments.