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:

  1. 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.
  2. Once you have the certificate, run TonCut for Automation Configurator and select both PEM files.
  3. After saving the configuration, the program should switch to the wss: protocol.
  4. 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.
  5. 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.
    "C:\Program Files (x86)\TonCut for Automation\TonCutForAutomation.exe" -reload-ssl-cert