Modules - Handling | TwinCAT Loader Return codes under Windows Return codes under TwinCAT/BSD ® 7.3.4 TcSignTool - Storage of the certificate password outside the project | TcSignTool - Storage of the certificate password outsi ... The TcSignTool can be used to store a password for a TwinCAT user certificate in the registry. Thus, the password is not needed in the projects, where the passwords would end up unintentionally in version control systems. The TcSignTool is a command line program located in the path C:\TwinCAT\3.1\sdk\Bin\ or C:\Program Files (x86)\Beckhoff\TwinCAT\3.1\SDK\Bin . The storage of the password is carried out with the following parameters:
tcsigntool grant /f "…CustomConfig\Certificates\MyCertificate.tccert" /p MyPassword The password is deleted with the following parameters: tcsigntool grant /f "…CustomConfig\Certificates\MyCertificate.tccert" /r The unencrypted password is stored under: HKEY_CURRENT_USER\SOFTWARE\Beckhoff\TcSignTool\ TwinCAT 3 55 Version: 1.19.1 Hex Description 0xC1 File is corrupted; PE file checksum error. 0x241 Signing error: TwinCAT user certificate does not match the file hash. 0x4FB Signing error: File not signed. 0x1772 File is encrypted, but cannot be decoded with known keys. Hex Description 0xC0000001 0xC0000004 0xC000007B 0xC0000173 0xC0000221 File is corrupted; PE file checksum error.
0xC0000102 0xC0000424 Signing error: TwinCAT user certificate does not match the file hash. 0x4FB Signing error: File not signed. 0xC0000428 Signing error: Used certificate not countersigned. Test mode necessary. 0xC0000603 Signing error: Certificate is not trusted. Add necessary (see "tcinsertcert") 0xC0000385 Signing error: File not signed. Check the settings in Engineering. 0xC0000293 File is encrypted, but cannot be decoded with known keys. 0xC0000225 File not found.