Configuring HTTPS/SSL in the system
Components with SSL Support
Component | Purpose | SSL Configuration |
---|---|---|
TWebServices | Server for engineering access (Solution Manager, Designer, files) | TWebServices.json |
TServer | Runtime server: modules, data, file access | TServer.json + "SSL" checkbox in Designer |
JSON File Location and Structure
Configuration files are located at:
C:\Users\Public\Documents\FrameworX\MachineSettings\
Examples:
TWebServices.json
TServer.json
tRPCServer
section example:
json:"tRPCServer":
{
"CertFileName_3111": "C:\\Users\\Public\\Documents\\FrameworX\\MachineSettings\\https\\Certificate.pfx",
"CertPass_3111": "YourCertificatePassword"
}
CertFileName_<port>
/CertPass_<port>
: Define the certificate for a specific port. (3111 is just a port example)Recommended: Use port-specific entries to ensure only specific ports are secured.
Avoid using
CertFileName
without a port suffix unless you intend to secure all ports.
Component Behavior Details
TWebServices
Handles access to engineering tools and shared resources.
Runs once per machine, not suitable for multi-port setups.
To enable HTTPS:
Configure
TWebServices.json
with your certificate.Configure Solution Location in Solution Manager → Server Information tab to use "
https://...
."
TServer
Manages runtime data, file access, modules, and client communication.
Supports multiple instances, each listening on a different port.
Allows enabling SSL per port, suitable for running multiple secured and unsecured projects simultaneously.
Configuration Steps
Obtain or generate a valid digital certificate (
.pfx
format).Copy it to:
C:\Users\Public\Documents\FrameworX\MachineSettings\https\
Edit
TWebServices.json
and/orTServer.json
to reference the certificate.For TServer, enable the SSL checkbox in Designer under Runtime Startup.
Restart the relevant executables to apply changes.
Generating .pfx
from .crt
, .ca
, .key
, .csr
1. Concatenate certificate and CA chain:
cat your_cert.crt your_ca.crt > full_cert.crt
2. Generate .pfx
:
openssl pkcs12 -export \
-out certificate.pfx \
-inkey private.key \
-in full_cert.crt \
-certfile your_ca.crt
This command will prompt for a password. Use that same password in your CertPass_<port>
entry.
Client Access URLs (HTTP vs HTTPS)
Enabling SSL on a port does not disable non-SSL access on a different port. Each protocol must use its own port.
SmartClient
Without SSL:
http://127.0.0.1:3101/smartclient
With SSL:
https://127.0.0.1:3111/smartclient
Port must be configured in
TServer.json
and defined as SSL Port in Designer.
HTML5 Client
Without SSL:
http://127.0.0.1:3101/html5
With SSL:
https://127.0.0.1:3111/html5
Port must be configured in
TServer.json
and defined as SSL Port in Designer.
Best Practices
Use port-specific certificate configuration.
Always deploy SSL in production environments.
Keep
.pfx
backups and store passwords securely.Validate certificate installation.
In this section...