In CODESYS, projects and applications can be encrypted with certificates and signed in order to protect them from unauthorized access.
You can also encrypt a project file or an application for download or online change directly with a certificate:
To do this, you can configure specific "security" settings for each individual user profile. These settings are always used automatically when the user works with CODESYS projects, and as a result they do not have to be redone for each project. The general configuration of the security features for a user profile is done in the “Security Screen” view of CODESYS. See the individual instructions below.
-
User-independent encryption for the current project is configured in the “Security” category of the “Project Settings”.
-
User-independent encryption of the application is configured in the “Properties” dialog of the application object.




NOTICE

When you encrypt a project, an application, or online code with a certificate, you will always require the certificate with a private key in order to open the object again.
If the CODESYS Security Agent add-on product is installed, then the “Security Screen” view provides an additional “Devices” tab. This allows for the configuration of certificates for the encrypted communication with controllers.
Certificates, Windows Certificate Store
All available certificates are located in the "Windows Certificate Store" (“certmgr”) on your computer. There are two types of keys:
-
Certificates with private keys
-
for file decryption
-
for digital signatures
-
-
Certificates with public keys
-
for file encryption
-
for verifying digital signatures
-
The local Windows Certificate Store is usually filled with certificates by the IT administrator of the computer. Certificates are either created using special tools or the creation is requested by a trusted certification authority ("CA").
If you receive a certificate file that you need to install yourself in the Windows Certificate Store, then double-click the file in the store directory. Depending on the type (certificate with private or public key only), the appropriate import wizard will appear.
All available certificates are located in the "Windows Certificate Store" (“certmgr”) on your computer. There are two types of keys:
For more information, see: ⮫ “Encrypting a project with a certificate ” and ⮫ “General Information ”