fungover / storm

A simple webserver implementation
MIT License
1 stars 12 forks source link

storm

GitHub Workflow Status pull requests issues Qodana coverage branches coverage GitHub release Jokes Card

A simple webserver implementation

INSTRUCTIONS FOR HTTPS

  1. 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
  2. Set config.json file located in config/
    • Set "port": 8443
    • Set "type": "https"
  3. 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
    • Use Insomnia
      • Go to Application/Preferences -> Request / Response
        • Make sure Validate Certificates is UN-TICKED
      • Connect to https://localhost:8443