OpenSCADAWiki: Home Page En/Doc/SSL ...

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageEn/Doc/SSL from 2009-05-13 15:47:41..

Russian (1 Kb) Русская версия
Ukrainian (1 Kb) Українська версія

Module <SSL> of subsystem “Transports”

Module: SSL
Name: SSL
Type: Транспорт
Source: tr_SSL.so
Version: 0.8.0
Author: Roman Savochenko
Description: Provides transport based on the secure sockets' layer. OpenSSL is used and SSLv2, SSLv3 and TLSv1 are supported.
License:GPL

Contents

Introduction

The module SSL of the transport provides the support of transport based on secure sockets layer (SSL) into the system. In the basis of the module there is the library OpenSSL. Incoming and outgoing transports of protocols SSLv2, SSLv3 and TLSv1 are supported.


It is possible to add new incoming and outgoing transports through the transport subsystem configuration in any configurator of OpenSCADA system.

1. Incoming transports

The configured and runnig incoming transport opens server SSL-socket for the expectation of connection of the clients. SSL-socket is a multi-stream, ie when the client connects, the client SSL-connection and a new stream in which the client is served are created. Server SSL-socket in this moment switches to the waiting for the request from the new client. Thus the parallel service of the clients is achieved.


Each incoming transport is necessarily associated with one of the available transport protocols, to which incoming messages are transmitted. In conjunction with the transport protocol is supported by a mechanism of the combining of pieces of requests, disparate while transferring.


Configuration dialog of the incoming SSL-transport is depicted in Figure 1.


Configuration dialog of the incoming SSL-transport. (104 Kb)
Fig.1. Configuration dialog of the incoming SSL-transport.

Using this dialog you can set:

2. Outgoing transports

Сконфигурированный и запущенный исходящий транспорт открывает SSL соединение с указанным сервером. При разрыве соединения, исходящий транспорт отключается. Для возобновления соединения транспорт нужно опять запустить.


Главная вкладка страницы конфигурации исходящего SSL-транспорта изображёна на рис.2.


Main tab of the configuration page of the outgoing SSL-transport. (83 Kb)
Рис.2. Главная вкладка страницы конфигурации исходящего SSL-транспорта.

С помощью этого диалога можно установить:

3. Сертификаты и ключи

Для полноценной работы модуля необходимы сертификаты и приватные ключи. В случае с входящим SSL-транспортом (сервером) они обязательны. В случае с исходящим SSL-транспортом они могут и не устанавливаться хотя их использование желательно.


Простейшей конфигурацией сертификата является самоподписной сертификат и приватный ключ. Ниже описана процедура их создания с помощью утилиты openssl:


# Генерация секретного ключа
$ openssl genrsa -out ./key.pem -des3 -rand /var/log/messages 2048
# Генерация самоподписанного сертификата
$ openssl req -x509 -new -key ./key.pem -out ./selfcert.pem -days 365


Далее содержимое файлов selfcert.pem и key.pem копируется в текстовое поле сертификата и ключа. Пароль приватного ключа устанавливается в соответствующем поле.

Ссылки

Referring pages: HomePageEn/Doc
HomePageEn/Function
HomePageEn/Using/APIFunctionLibs/LibUserPrtDevs
HomePageEn/Using/PLC/firmware
HomePageEn/Using/SmartHouse


 
There are no files on this page.[Display files/form]
There is no comment on this page. [Display comments/form]