Configuring Private Stations to Work with a Customized HTTPS Domain

By default, a private station communicates with the simulation client apps. through HTTP. If required, you can customize a private station for secure communication using HTTPS.

You must configure your own public key certificate and private key as a special PKCS#12 keystore for the private station. The private station application uses its own HTTPS server (with this public/private key pair) to communicate with the simulation client apps.

The private station HTTPS configuration applies only to an on-premises installation of the 3DEXPERIENCE servers and the 3DOrchestrate Distribution Server. It does not work with a Dassault Systèmes cloud server. Private station HTTPS configuration works with all simulation apps except Process Composer (Web).

The default URL that private stations use for communication with apps using HTTP is http://127.0.0.1; you can specify a custom URL for HTTPS communications by changing the value of the server property smaexe.privatestation.customdomain.

If you do not perform the configuration steps in this section, 3DOrchestrate private stations communicate with apps using HTTP.

This task shows you how to:

Configure Localhost Ports for the Station

Choose the localhost ports that all customized HTTPS private stations use. You can specify these port numbers in either the <server_install_dir>/config/SMAExeServer-xxxx.properties file of the 3DOrchestrate Distribution Server or in the user interface of the Station Administration app. If you do not specify the ports, the private station uses the following default ports: 35125, 45341, and 55447.

Warning: The port configurations that you specify in the properties file persist after a server restart, but the configurations you specify in Station Administration are lost the next time you shut down and restart the 3DOrchestrate Distribution Server.
  • To specify the localhost ports in the server properties file, set the following property to a comma-separated list of your required ports:
    smaexe.privatestation.ports=port1,port2,port3

    For example: smaexe.privatestation.ports=30300,40301,50302

    After editing the properties file, restart the 3DOrchestrate Distribution Server.

  • To specify your port numbers in Station Administration, edit the server properties and enter the required port numbers in the Private Station Ports field.
    Important: The private station settings entered in the Station Administration are not persistent. When you restart the 3DOrchestrate Distribution Server, you lose all the settings. Use the smaexe.privatestation.ports property in the SMAExeServer-xxxx.properties file for a more permanent configuration change.

Configure Private Station with Public/Private Key Pair

You can define the 3DEXPERIENCE Launcher public key certificate and private key as a special PKCS#12 keystore for the HTTPS private station. For more information about the 3DEXPERIENCE Launcher, see Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Platform Installation | Installing Services One-by-One | Desktop Apps | Desktop Apps | Installing a Desktop App | 3DEXPERIENCE Launcher.

  1. Assemble the certificate and private key in a file named mylauncherdomain.mycom.com.p12.

    This file must be in PKCS#12 format and must contain both the private key and public key. PKCS#12 keystore files usually have the file name extension .p12 or .pfx.

  2. Place a copy of this keystore file in a file system that is accessible to the private station (usually on the local computer).
  3. Create a properties file to identify the .p12 keystore for the private station.

    This file can have any name; for example, custom-cert-props.txt.

    Put the following three property definitions in this file:

    keystore=<path_to_p12_keystore_file>
    keystorepwd=<password_to_unlock_the_keystore>
    keypwd=<password_for_recovering_keys>

  4. Define an environment variable STATION_CUSTOMCERT_PROPFILE that points to your custom-cert-props.txt file.

    Make sure that this environment variable is defined on every private station computer; for example, as a Windows system variable or in a batch file used to start the private station.

  5. Edit the Windows /etc/hosts file.

    This file allows you to specify to Windows that a specific domain must be resolved to a specific IP. In our case, you need to set redirection for the target domain name to localhost IP (both IPV4 and IPV6).

    Add the following lines to the %SystemRoot%\System32\drivers\etc\hosts file:

    127.0.0.1 [DOMAIN]
     ::1 [DOMAIN]

    where [DOMAIN] is the target domain name to use. So in our example, this would be:

    127.0.0.1 privatestation.mycom.com
     ::1 privatestation.mycom.com

Verify the Configuration

When the private station starts, it starts its own HTTPS server using this special keystore. The HTTPS server handles communication to and from the private station the simulation client apps. This communication occurs on the port numbers you specified or on the default ports.

Simulation client apps communicate with the private station's HTTPS server using the custom-domain URL specified above, when the end user chooses localhost execution.

The customized URL (with the protocol but without the port) is similar to:

https://privatestation.mycom.com

After the private station starts, you can verify that the configuration is correct by checking the title bar of the station user interface and by entering a test URL in a browser.

  1. Verify that the title bar of the station user interface shows the custom-domain URL and custom port number in a format like this:

    • mylaptop-LOCALHOST (Private Station)privatestation.mycom.com:35125
    • Station name: mylaptop-LOCALHOST

  2. Enter the following test URL in a web browser:

    <customdomainURL:port>/SMAExeStation-REST/station/info

    For example: https://privatestation.mycom.com:35125/SMAExeStation-REST/station/info

    You should see that the web browser has made a successful secure connection, and the following XML data should be displayed in the browser:

    <StationData name="stationname" status="Running" ip="xxx.xx.xx.xx" os="WINDOWS" 
    cosid="<3DOrch-server>" user="username" spaceurl="<3DSpace-URL>"