beckhoff TwinCAT 3 — 7.3.1 Test signing

Modules - Handling | TwinCAT Loader For TwinCAT/BSD ® In the file /usr/local/etc/TwinCAT/3.1/TcRegistry.xml enter " Name="EnableTestSigning" Type="DW"1 " under Key " System ". 1 0 052445B00101 33554432 1 Then restart the TwinCAT system service: doas service TcSystemService restart After the respective procedure, the system accepts all signed drivers for execution. 1. During the first activation (Activate Configuration) with a TwinCAT user certificate, the target system detects that the certificate is not trusted and the activation process is aborted: For Windows: A local user with administration rights can trust the certificate via the created REG file by simply executing it:

For TwinCAT/BSD ® : If the "Tcimportcert" package is not installed, install it: pkg install TcImportCert Trust the certificate via doas tcimportcert /usr/local/etc/TwinCAT/3.1/Target/ OemCertificates/ .reg . Then restart the TwinCAT System Service or reboot the system: doas service TcSystemService restart р This process only enables C++ modules with a signature from the trusted TwinCAT user certificates to run. 2. Following this process you can use the TwinCAT user certificate for signing with the test mode of the operating system. This is configured in the project properties [ } 144] .

Use the TcSignTool [ } 55] to avoid storing the password of the TwinCAT user certificate in the project, where it would also end up in version management, for example. If you want to use the TwinCAT user certificate without TestMode for delivery, you must have the certificate countersigned by Beckhoff [ } 23] . TwinCAT 3 52 Version: 1.19.1