Figure out how to get mutual authentication running with self-signed certificates, spring, embedded tomcat and java.
The building and execution needs to be in this order.
- Generate self signed certificates
- Run server
- Run client
Run the following command in the cert directory
./createKey.sh
Put password as 'password' whenever prompted.
Please refer to the readme in the MutualAuthServer folder.
Please refer to the readme in the MutualAuthClient folder.
From the certs directory, issue the following command while the server is running
curl 'https://localhost:8443/api/ping' --key MyClient.key.pem --cert MyClient.crt.pem:password -k
If this helped, please buy me a cup of coffee?