For testing in localhost, all certificates, java-key-stores (jks) and PKCS12 key-stores as well as the trust-stores are included.
Note: need to make changes to the application-.properties though.
Go to src/main/resources/certs3 and run ./gen_certs_pairs.sh (for SSL with client-auth).
Just run SwoControllerTests as JUnit Test Suite.
-
Set-up : Change the properties accordingly in application-noclientauth.properties (especially the path to src/main/resources/qbpo_java.p12).
-
Prepare : Run the whole app with spring profiles "default" and "noclientauth" first.
-
Test : Then, run SwoControllerViaRestTests as JUnit Test Suite.
-
Set-up : Change the properties accordingly in application-clientauth.properties (especially the path to src/main/resources/certs3/node1.p12 and src/main/resources/certs/node11.jks)
-
Prepare : run the whole app with spring profiles "default" and "clientauth" first.
-
Set-up : Change the properties accordingly in application-client.properties (especially the path to src/main/resources/certs3/node2.p12 and src/main/resources/certs3/node22.jks).
-
Test : Then, run SwoControllerClientAuthViaRestTests as JUnit Test Suite.