Managing Certificates on the Controller

Overview

If the client or server is configured to verify the certificate of the communication partner in mode TrustedOnly, the corresponding certificate must be available on the controller and it must be declared as trusted. To achieve this, use the editor Security Screen in EcoStruxure Machine Expert Logic Builder to manage the certificates on your controller.

Security Screen Editor

The Security Screen editor is available in EcoStruxure Machine Expert Logic Builder via the View > Security Screen command. The Devices tab of the Security Screen editor provides access to the folders that are dedicated to managing certificates on the connected controller.

Click the G-SE-0019545.1.gif-high.gif button to display the corresponding folders and their content for the certificate handling on the connected controller.

For example, the following categories are available for the Modicon M262 Logic/Motion Controller:

oOwn Certificates: Certificates owned by the controller which are used for associated services it provides.

oTrusted Certificates: Certificates that have been created by a trusted certificate source.

oUntrusted Certificates: Certificates that you have declared as untrusted.

oQuarantined Certificates: Certificates that do not meet the criteria of the other categories.

G-SE-0076893.1.gif-high.gif

 

 

Successful verification of a certificate in mode TrustedOnly is only possible if the corresponding certificate(s) are available in the folder Trusted Certificates.

Declare a Certificate as Trusted

Step

Action

Comment

1

Save the certificate of a device / software that you received from the manufacturer to your PC running EcoStruxure Machine Expert.

If you did not receive a certificate from the manufacturer of your device / software, you can obtain it by trying to establish a connection as described in the paragraph Obtaining an Unknown Certificate.

2

Double-click the certificate.

Result: The Certificate dialog box opens.

3

Inspect the certificate carefully in the General tab and decide whether you want to declare it as trusted.

4

Select the Certification Path tab and verify whether there is only one entry.

G-SE-0076892.1.gif-high.gif

 

 

If there is only one entry in the Certification Path tab, then this is a self-signed certificate, as for example, for the Modicon M262 Logic/Motion Controller. You can skip the next two steps and proceed with step 7.

If there is a tree structure in the Certification Path tab, then this certificate has been signed by a CA (Certificate Authority). In this case, perform the following steps for CA certificates.

5

If the certificate has been signed by a CA: Verify each certificate from the tree structure including the root CA certificate from the Certification Path tab.

6

For each CA certificate of the Certification Path, select the certificate and click the View Certificate button.

Result: A new dialog box opens for the selected certificate.

7

Select the Details tab and click the Copy to file... button to save the certificate on the PC.

8

Download the saved certificate files to the Trusted Certificates folder of your controller.

Refer to the paragraph Downloading Certificate(s) Declared as Trusted to the Controller.

Downloading Certificate(s) to the Controller

Step

Action

1

In EcoStruxure Machine Expert Logic Builder, execute the Security Screen editor from the View menu.

2

In the Security Screen editor, select the Devices tab.

3

Click the button Refresh the list of available devices and their certificate stores.

Result: The display is updated according to the information received from the connected controller.

4

Select the folder Trusted Certificates, and click the Download button.

5

In the Open dialog box, navigate to the folder on your PC running EcoStruxure Machine Expert where you saved the certificate file(s).

6

Select the certificate file(s) and click the Open button.

Result: The certificates are downloaded to the controller and are displayed on the right-hand side of the Security Screen editor as content of the folder Trusted Certificates.

G-SE-0076893.1.gif-high.gif

 

 

Obtaining an Unknown Certificate

Step

Action

Further information

1

Establish a secured connection with etCertVerifyMod set to TrustedOnly between the client and the server:

oIf your application implements a client, connect to the server.

oIf your application implements a server, open the server and accept the incoming connection from the client.

Results:

oAs the certificate that has been sent by the server or client is unknown, the connection cannot be established.

oThe unknown certificate is stored in the folder Quarantined Certificates on your controller.

oIf your controller application implements a client, the result ConnectionFailed may indicate that the certificate that has been received from the server is unknown.

oIf your controller application implements a server, the result TlsError may indicate that the certificate that has been received from the client is unknown.

NOTE: If the folder is empty, the communication partner may have not sent its certificate. Verify the configuration of the remote server or client in order to find out whether a certificate can be expected.

2

In EcoStruxure Machine Expert Logic Builder, open the Security Screen editor and click the button Refresh the list of available devices and their certificate stores.

3

Select the folder Quarantined Certificates.

4

Select the certificate from the list on the right-hand side of the Security Screen editor, and click the Upload the selected certificate from the device and save it to your PC button.

G-SE-0076894.1.gif-high.gif

 

 

5

In the Save as dialog box, navigate to a folder on your PC running EcoStruxure Machine Expert where you want to save the certificate file(s) and click the Save button.

6

Verify the certificate(s) and decide if you want to declare them as trusted as described in the paragraph How to Obtain Trusted Certificates.

7

Download the certificate(s) declared as trusted to the controller.