How to enable SSL/TLS
Instructions to run the Gunbot browser interface over a secure connection.
Last updated
Was this helpful?
Instructions to run the Gunbot browser interface over a secure connection.
Last updated
Was this helpful?
To run the GUI on https, you'll need a certificate. Below are instructions to generate a self-signed certificate on Windows, Mac and Linux.
Make sure to set the https
parameter in config.js
to true
to actually enable https after creating a certificate.
When connecting to the GUI for the first time, you'll probably encounter a browser warning due to the use of a self-signed certificate. Create a permanent exception to not get warned again on the same browser.
and install OpenSSL for windows
Go to the following folder: C:\Program Files\OpenSSL-Win64\bin
Right click "openssl" and run as administrator, a cmd window opens
Run the following command: req -newkey rsa:2048 -nodes -keyout localhost.key -x509 -days 365 -out localhost.crt
(you'll be asked to fill in some details, you can do this or leave the fields blank by hitting enter several times)
Copy the localhost.key
and localhost.crt
from C:\OpenSSL-Win64\bin to your Gunbot folder
Open a terminal window and navigate to your Gunbot folder
Run the following command openssl req -newkey rsa:2048 -nodes -keyout localhost.key -x509 -days 365 -out localhost.crt
and make sure to enter the country code field. The rest can be left blank
Open a terminal window and navigate to your Gunbot folder. Possibly you'll need to install openssl through your package manager first.
Run the following command openssl req -newkey rsa:2048 -nodes -keyout localhost.key -x509 -days 365 -out localhost.crt
and make sure to enter the country code field. The rest can be left blank.