Securing mock services using X.509 certificates
Mock services in SoapUI can also support the HTTPS transport layer security, including the client certificate authentication seen in the previous recipe. This recipe builds on the previous two, showing how to enable the HTTPS transport layer security and client certificate authentication with SOAPDB MockService
from chapter 3
.
The actual steps should be pretty easy if you have followed the previous two recipes or are already comfortable using X.509 certificates.
Getting ready
We'll use the server.jks
and client.jks
keystores from the previous recipe and their passwords.
In terms of securing the mock service, we'll use a modified version of the SOAPMock-soapui-project.xml
project from the chapter 3
sample called SOAPDBMock-Reporting-soapui-project.xml (SOAPDBMock-Security)
. You can find this in the chapter 7
samples.
How to do it...
The sample mock service is already setup to provide mock requests over HTTP on port 9001. First, we'll enable HTTPS...