Simple Web ServerSimple Web Server
Download
Documentation
  • English
  • 简体中文
  • 繁體中文
  • Español
  • Français
  • Português
  • Русский
  • Deutsch
  • 日本
  • 한국어
  • Italiano
  • Українська
  • Azərbaycanca
  • Nederlands
  • Svenska
GitHub
Download
Documentation
  • English
  • 简体中文
  • 繁體中文
  • Español
  • Français
  • Português
  • Русский
  • Deutsch
  • 日本
  • 한국어
  • Italiano
  • Українська
  • Azərbaycanca
  • Nederlands
  • Svenska
GitHub
    • Server Options
    • App Settings
    • Editing config.json
    • Using HTTPS
    • Viewing logs
    • Building from source
    • Coming from Web Server for Chrome?
    • Introduction to plugins
    • Plugin manifest file
    • Plugin script
    • Advanced configuration using .swshtaccess files
    • Using custom scripts
    • Creating a custom request handler

Using HTTPS

Simple Web Server supports custom HTTPS certificates, but it can also generate dummy certificates for you for testing purposes.

Using a dummy certificate for testing purposes

Some newer web APIs require a secure (https) connection in order to use certain features. While this isn't a problem when testing on localhost (see Secure contexts on MDN), you may want to use a dummy HTTPS certificate to test these features on other devices over LAN.

To use HTTPS with a dummy certificate, check the HTTPS checkbox and then click the "Generate dummy cert" button.

Because the certificate is self-signed, you will receive an error message in the browser.

Unsecure connection warning message in Google Chrome.

For testing purposes, you can bypass this error:

Chrome: Type thisisunsafe on your keyboard while on this screen.

Firefox: Click "Advanced..." and then click "Accept the Risk and Continue".

Safari: Click "Show details", click "visit this website" and then click "Visit website" to confirm.

Using a custom certificate

The file fullchain.pem corresponds to the SSL/TLS certificate.

The file privkey.pem corresponds to the SSL/TLS private key.

Edit this page on GitHub
Prev
Editing config.json
Next
Viewing logs