A simple webserver implementation
- Create a keystore.jks self-signed certificate
- Create the following directory:
etc/storm/ssl
- Open a terminal window in this directory
- Run the following command:
keytool -genkeypair -keyalg RSA -alias org.fungover.keystore -keystore keystore.jks -storepass password -dname "cn=Storm, ou=Java21, o=Fungover, c=SE"
- This will create the keystore.jks self-signed certificate file in the etc/storm/ssl directory
- Create the following directory:
- Set config.json file located in
config/
- Set
"port": 8443
- Set
"type": "https"
- Set
- Connect to server
- Use a browser
- Connect to
https://localhost:8443
- There will be a certificate warning since we are using a self-signed certificate
- Click
Advanced
and choose to continue to the site anyway
- Click
- Connect to
- Use Insomnia
- Go to
Application/Preferences -> Request / Response
- Make sure Validate Certificates is UN-TICKED
- Connect to
https://localhost:8443
- Go to
- Use a browser