- IntelliJ or Eclipse (instructions will assume IntelliJ)
- Java 11
- (Recommended: KeyStore explorer)
- Clone the GitHub repository
- Add the necessary entries to you
hosts-file (on Linux/Mac:/etc/hosts. On Windows:C:\Windows\System32\drivers\etc\hosts):127.0.0.1 ca.boosterconf.local 127.0.0.1 app.boosterconf.local - Try to run all unit test. This will fail if you don't do this step above. It will also fail the first time you run it, as some tests depend on local files. Copy the contents of
target/test-data/certificatestosrc/test/resources/certificatesto run successfully - Run
com.johannesbrodwall.pki.ca.server.CaHttpServeras a main class - start, but with an error message that it cannot read the certificate information. The server runs on localhost:11080, but not yet with https - Create a file named
pkidemo.propertieswith the following contents:ca.keystore=certs/ca/ca.p12 ca.create.ifMissing=true ca.create.issuerDN=O=Sopra Steria,OU=Conference talk - If you go to the server at https://localhost:11443 you be warned about an untrusted server.
- Locate
certs/ca/ca.crtand install it as a Trusted Root. Restart the browser and try https://localhost:11443 again. You should now get access - Follow the rest of the workshop in
SCRIPT.md - Did you enjoy this workshop? Give the repository a star on Github