Here’s how to add an SSL certificate to your bot’s webinterface:
- Stop the bot.
- Open the config.ini file: Use a text editor to open the config.ini file.
- Add the SSL key file path: Under the “[webinterface]” section, add “ssl_keyfile = path/to/key.pem” (without the quotes) if it doesn’t exist and replace “path/to/key.pem” with the actual path to your SSL key file.
- Add the SSL certificate file path: Still under the “[webinterface]” section, add “ssl_certfile = path/to/cert.pem” (without the quotes) if it doesn’t exist and replace “path/to/cert.pem” with the actual path to your SSL certificate file.
- Save the config.ini file: Save the changes to the config.ini file.
- Start the bot.
Example:
[webinterface]
ssl_keyfile = path/to/key.pem
ssl_certfile = path/to/cert.pem
Note: Make sure to replace “path/to/key.pem” and “path/to/cert.pem” with the actual paths to your SSL key and certificate files.