|
|
|
|
|
How to encrypt Raw TCP serial connections with SSL To integrate serial connected devices into custom applications, the easiest option is often to use a Raw TCP connection between the application, and the Opengear connected to the serial device. In some scenarios, it is required that the data be encrypted. The easiest solution for this is to use an SSL socket to provide transparent encryption and decryption. This faq shows how to use the stunnel on the Opengear appliance to allow encrypted Raw TCP connections to serial ports. Opengear uses stunnel for HTTPS connections on the console server/router appliance, and we use it for securing VNC on our KCS appliance. Assuming you've already have raw tcp mode set up and working, you first edit the /etc/config/https.conf file and append a section as follows: [rawtcp] accept = :::9001 TIMEOUTclose = 0 connect = ::1:4001 Then restart stunnel (killall stunnel) The above example uses 9001, but that is an arbitrary port that is not used on the box. You will then need to go to the firewall page:
# socat stdin openssl:192.168.254.80:9001,verify=0 Once the command is running, type some characters, and press return. The characters should be echoed back. Please note that this example setup uses the same certificate as the webserver. This by default is an unsigned certificate, which is why the verify=0 option was used in the above example. |
|
Solutions Product Overview Solutions Overview How to Buy |
About Us Corporate In the Media Press Releases Contact Us |
Resources YouTube Videos Resource Library |
Support Technical Support Knowledge Base Cabling & Adapters Contact Us |
| © Opengear 2012 | Privacy Policy |