Scenario:
If anyone wants to enable the client authentication for Web services then "NeedClientAuth" property in the jetty.xml file should be set to "true"
Solution:
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:
- Open jetty.xml file from location ".\AdeptiaSuite-6.2\AdeptiaServer\ServerKernel\etc\jetty".
- Create a new SSLContextFactory say SSLContextFactory2.
- Use that SSLContextFactory2 for HttpsConnectorB.
- Enable the "NeedClientAuth" in jetty.xml by setting the value as "true" in Https Connector created for webservice.
- Restart Adeptia Webrunner.
Scenario 2: If the web service secure port is already defined in jetty.xml then below steps should be followed:
- Open jetty.xml file.
- Enable the "NeedClientAuth" in jetty.xml by setting the value as "true" in Https Connector defined for webservice.
- 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.
Comments
0 comments
Article is closed for comments.