Lenze Controller as SKS Client
The Lenze OPC UA PubSub module is able to connect to a SKS server and receive keys for secure communication. For this purpose, there is an internal client implementation that establishes a connection with the SKS server and logs in to the SKS server either anonymously or with credentials.
For the automatic connection the SKS Client Mode parameter 0x247C:150 has to be set to 1:Enabled Pull. If the pull client mode is activated, the client attempts to retrieve a set of keys from the server at 1 second interval. The client also tries to obtain new keys before they expire.
|
Index |
Sub |
Name |
Default |
Note |
|---|---|---|---|---|
|
0x247C |
150 |
SKS Client Mode |
0: Disabled |
0: Disabled 1: Enabled Pull |
|
0x247C |
156 |
SKS Endpoint URL |
|
SKS Server address, e.g.opc.tcp://10.10.10.10:4840 |
|
0x247C |
157 |
SKS User |
|
User name for authentication at SKS Server |
|
0x247C |
158 |
SKS Password |
|
Password for authentication at SKS Server Use the password dialogue in PLC Designer and EASY Starter for encrypted storage. |
|
0x247C |
159 |
SKS Hostname Check |
0: Disabled |
0: Disabled 1: Enabled |
If the controller acts as a SKS server as well as a SKS client, no SKS client parameters must be set. The PubSub module receives the provided keys automatically from the Server which is hosted on the same device.
It´s possible to delete the current SKS keys on a SKS client controller by restarting the OPC UA server with command parameter 0x2470:001. This triggers a re-pull if it is configured in parameter 0x247C:150.
For diagnosis purposes following parameters are provided.
|
Index |
Sub |
Name |
Default |
Note |
|---|---|---|---|---|
|
0x247E |
50 |
SKS Client State |
0: Disabled |
0: Disabled 1: Disconnected 2: Connecting 3: Get Security Keys 4: Disconnecting 5: Reconnecting |
|
0x247E |
51 |
SKS Client Keys Update State |
|
0: Idle 1: Updated 2: Update Failed |
|
0x247E |
52 |
SKS Keys Update Time |
|
Time stamp of the last update. |
It is recommended to use encrypted transport and encrypted storage whenever the Password parameter in 0x247C:158 is changed. To establish an encrypted communication with the target device use either the PLC Designer or the EasyStarter, both require a forced encryption . To edit the parameters, after a secure connection is established, only use the password dialogue on the OPC UA PubSub settings tab in the PLC Designer or EASY Starter. If this method is used, the password is only stored in encrypted form on the controller. The password will not be stored in the offline parameter set.
If the parameter is set using other methods, e.g. the "Parameter list” of the tool, the password is also stored unencrypted in the offline parameter set created by the tool.
The certificate check during connection establishment between the internal SKS client and the SKS server includes a check of the hostname in the SKS server certificate and the SKS Endpoint Url in parameter 0x247C:156. Normally this should match, because otherwise an attacker could use any trusted certificate to fake a server's identity.
Nevertheless, the check can be disabled by the parameter 0x247C:159. It´s useful if the IT infrastructure is not able to resolve hostnames via DNS server and an IP address has to be used for the SKS Endpoint Url in parameter 0x247C:156.
From a security point of view, it is not recommended to disable the hostname check.