SSL Configuration
In order for the server version of TonCut for Automation to use SSL and expose its API using the wss:
protocol, you need to follow a few simple steps:
- First, of course, you need to obtain a certificate. This can be a free certificate (e.g. Let’s Encrypt). Both the key and the certificate must be generated in PEM format.
- Once you have the certificate, run TonCut for Automation Configurator and select both PEM files.
- After saving the configuration, the program should switch to the
wss:
protocol. - The Configurator also allows you to test the connection - just make sure you provide the correct hostname (the one for which the certificate was generated) and the correct port.
- Finally, it is worth remembering that some free certificates have a short
validity period and must be renewed. Usually, tools for generating such certificates
renew them automatically. They also usually allow you to run any application after
renewing the certificate. TonCut for Automation is ready for this - to inform it about
the change of certificate, just call the program with the
-reload-ssl-cert
argument.