i9x0.EncryptedCommunication.PLCDesigner
This functionality has been available from versions 2.0.0 on.
For communication between PLC Designer via the gateway to the device, the connection should be encrypted. This is shown in the following image.
Activity Diagram
Scan Network and select a i9x0:
To establish a connection please follow these steps:
-
Open the »PLC Designer« project or generate a new project in the »PLC Designer«.
-
In the Device Tree, double-click the Device, e.g. i9x0 servo inverters.
-
Open the Communication Settings tab.
-
Scan Network and select the i9x0.
Optional: Activate the user management
Activate the User Management (i9x0.UserManagement).
Changing Communication Policy
The screen to change the communication policy is located in the "Communication Settings" tab within the "Device" menu and "Change Runtime Security Policy …".
Change Runtime Security Policy
Communication
The device (in this case the Servo Inverters) supports both encrypted and unencrypted communication. The user can decide if the communication policy is:
-
"No encryption"
Then the i9x0 accepts only unencrypted communications. In this case the PLC Designer has to communicate in clear text.
-
"Optional encryption"
Then the i9x0 accepts both, encrypted or unencrypted communications. In this case the user of the PLC Designer can deside if the tool will communicate in clear text or encrypted.
-
"Enforced encryption"
Then the i9x0 accepts only encrypted communications. In this case the PLC Designer has to communicate in encrypted communication.
Device user management
The User Management is optional on the device. It is up to the user to activate the user management or leave the device unprotected:
-
"Optional user management"
If a new project is generated, the user management is deactivated. The user management can be activated by the user (i9x0.UserManagement).
-
Enforced user management
If a new project is generated, the user management is active. When using it for the first time, an administrator-user must set up.
With the setting ‘Allow anonymous login’, the anonymous login can be prevented (i9x0.UserManagement) for more details.
Activate Encrypted Communication
There are two ways to activate the encrypted communication:
-
The menu item to activate the encrypted communication is located in the ‘Communication Settings’ tab within the menu ‘Device’ and ‘Encrypted Communication’. If the ‘Encrypted Communication’ is active, the communication line between the PLC Designer and the i9x0 is marked with a yellow line.
Activate Encrypted Communication
-
The second way is to use the Security Screen. The Security Screen is located in the PLC Designer Menu ‘View / Security Screen’. Within the ‘User’ tab the ‘Enforce encrypted communication’ checkbox can be found.
Enforce Encrypted Communication
-
The Device / Encrypted Communication setting defines communication on the part of the PLC Designer.
The Communication Policy setting defines communication on the part of the i9x0 servo inverters.
This can, for example, lead to the situation where the i9x0 servo inverters is set to forced encryption and the PLC Designer requests clear text communication. The error message "No encryption is not supported by the device" appears.
Using Encrypted Communication
After activating the ‘encrypted communication’ there will be a certificate for it in the i9x0 Certificate Store. The Security Screen is located in the PLC Designer Menu ‘View / Security Screen’. Within the tab ‘Devices / <Name of Device> / Own Certificates‘ this certificate can be found with the Information ‚Encrypted Communication‘.
Certificate for Encrypted Communication
Details of this automatically generated certificate can be found in this documentation: (i9x0.EncryptedCommunication.PLCDesigner:Certificate)
-
The automatically generated certificate has a valid time of 30 days. It is strongly recommended to recreate this certificate with the desired term and key lengths.
For the encrypted communication between PLC Designer and the i9x0, the PLC Designer has to trust the Certificate of the i9x0. There are two ways to do this:
The first way is to login the PLC Designer to the i9x0 with activated ‘Encrypted Communication’. The following message box will appear and the user can decide, if the Certiciate is only used this time or for all sessions:
Login
Accept the certificate only for this session
The certificate of the i9x0 is used for this session and the connection is established. After the connection is completed and the user logs in again, the message box appears again.
-
What is not a session in this case?
-
Stop and Start the Application.
-
Reset Warm
-
Reset Cold
-
Reset Origin
-
Logout and Login
-
"Security/Logoff Current User" and Login
-
"Security/Logoff Current User", close project, open project, login
What is a session in this case?
-
Closing the »PLC Designer« and starting the »PLC Designer« again.
-
Install it as a trusted certificate into your local store "Controller Certificates":
The certificate of the i9x0 is stored in the Windows Certificate Store. This can be found under Controller Certificates. It is used for this connection and for all subsequent connections as long as the fingerprint of the certificate matches.
For more information about the Windows Certificate Store:
The second way is using the Security Screen with a logged- in PLC Designer to the i9x0. To do this, follow the steps below:
-
Open the Security Screen in the PLC Designer Menu ‘View / Security Screen’. Within the tab ‘Devices / Device / Own Certificates’ the certificate for the encrypted communication is shown.
-
Click on the ‘Encrypted Communication’ certificate and push the button ’Upload the selected certificate from the device and save it on your PC’. Choose an directory and save the certificate. The certificate name will be the i9x0 type combined with the IP address, e.g., 'i9x0 (192.168.10.100)'. The file format will be '*.cer'.
-
The format of this certificate is *.cer. It will include the public key for the encrypted communication, but of course not the private key.
For more information see Formats and Structures of certificates.
-
-
Open the Windows Certificate Store with the command ‚certmgr.msc‘. Select the directory‚ Controller Certificates/Certificates‘ and import the certificate from the uploaded file.
-
After the import, the certificate is shown in this directory and the PLC Designer will use it for every connection to this i9x0 without asking for trust.
Upload and Import Certificate
Replace existing Certificate
To replace an existing certificate, for example to extend the valid dates, the certificate can be replaced via the Security Screen. The Security Screen is located in the PLC Designer Menu ‘View / Security Screen’. Within the tab ‘Devices / <Name of Device> / Own Certificates‘ this certificate can be found with the information ‚Encrypted Communication‘.
Certificate for Encrypted Communication
Delete the selected certificate from the device:
Deleting the "Encrypted Communication" certificate will automatically generate a new one with default values. (i9x0.EncryptedCommunication.PLCDesigner:Certificate)
Create a new certificate on the device
By clicking the "Create a new certificate on the device" button, the user can generate a new certificate and enter the desired key length and validity period.
Good to know … : Using expired Certificates
If the certificate for encrypted communication is no longer valid and the PLC designer logs into the i9x0, a warning will appear.
Valid Warning
The user can decide whether to cancel or use the expired certificate.