You have created a TwinCAT Versioned C++ project and also had a module created by the wizard
1. Go to the properties of the project by right-clicking.
2. Activate the TwinCAT Signing in the Tc Sign tab.
3. If you have not yet created a TwinCAT user certificate, follow the instructions and observe to select the Sign TwinCAT C++ executeables.
4. Enter the file name of the TwinCAT user certificate and the password. (Note that this is stored unencrypted in the solution and is therefore also loaded on servers via version control, for example. If necessary, use the TcSignTool.)