Open Inventor Release 2025.1.0
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
SecureConnection example

Secure Connection example.

This example shows you how to enable a secure connection between the server and the clients. In a production environment, it is highly recommended to use secure WebSocket. Using a secure WebSocket connection improves confidentiality and reliability because the connection is encrypted with Transport Layer Security (TLS), which reduces the risk of a variety of attacks such as man-in-the-middle tampering with your data.

WARNING: The provided public certificate is a self-signed certificate. As a result, web browsers will block the connection (untrusted connection). Please replace the certificate and the private key by your certificate signed by a trusted certificate authority.

Note: In this example, the RemoteViz service uses the localhost IP address (127.0.0.1) by default. To run it on a web server, start the example by passing the service IP address and port as arguments (ex : SecureConnectionRenderingService 192.168.0.1 8082) and edit the file "index.html" (client side) to modify the IP address and the port.

FILES:

    • RemoteViz/SecureConnection/SecureConnectionRenderingService/include/SecureConnectionServiceListener.h
    • RemoteViz/SecureConnection/SecureConnectionRenderingService/src/SecureConnectionServiceListener.cxx
    • RemoteViz/SecureConnection/SecureConnectionRenderingService/src/main.cxx
    • RemoteViz/SecureConnection/Clients/HTML5/index.html