Securing MobileHMI Communications Using HTTPS

NOTE: ICONICS highly recommends setting up any production servers where MobileHMI is installed to use https (rather than http) to help improve security.

 

See Enhanced HTTPS Security for additional options.

 

The following scenario assumes that the MobileHMI Server is already installed and fully functional over HTTP protocol.

Server Side

  1. Either create the Self/CA-signed certificate using the command line tool or use the CA issued and signed certificate together with the CA certificate. When using the certificate issued by CA, import it with the private key (*.pfx) into the “Local Computer -> Personal” certificate store.

   The certificate name must match the FrameWorX Server computer name:

To generate a self-signed certificate, use this command:

C:\Program Files\ICONICS\GENESIS64\InstCert>makecert -n "CN=CollectorComputerName" -sr LocalMachine -ss My -r -sky exchange -pe -sk MarkContainerName

  1. For the used certificate (CA-signed or self-signed), grant permissions to the user under which services run (e.g. ICONICS_USER).

  1. Open MMC console and add “Local Computer” certificates.

  2. Go to Certificates -> Personal -> Certificates.

  3. Right-click on the created certificate – select “All Tasks” -> “Manage Private Keys”.

  4. Add a user, which is used for the service account, and grant at least Read permissions.

  1. Export the certificate created in step #1. Right-click “All Tasks” -> “Export”.

  1. Import the server certificate without a private key into the Local Computer/Trusted Root Certification Authorities. Also, make sure that the CA certificate is present when using CA-signed certificates.

  1. Open IIS Manager and expand the explorer.

  1. Configure the connection parameters for the “Mobile Clients” tab in the FrameWorX Server Location tool according to the following figure.

Mobile Clients Over HTTPS – Connection Configuration

Client Side – Browser

  1. Log on to the client machine as any user

  1. Open Internet Explorer and define the full anyglass AppHub URL:

https://t31-64/anyglass/projects/AppHub.ag

  1. Add the server URL (e.g. https://ServerName/) to the “Trusted sites” list in IE, if necessary.

  1. Now, an error related to untrusted server certificates will appear:

MobileHMI – Certificate Untrusted or Missing

 

  1. Close and reopen the browser/application and reconnect to the server.

Mobile Client Running Over HTTPS

Client Side – iOS, Android

  1. Install MobileHMI application from the appropriate application store.

MobileHMI on Apple Store

  1. Launch the application and define the MobileHMI server name or IP address.

  1. Try to connect to the server. It fails on Connection error because of the untrusted server certificate.

Connecting without Trusting Certificate

  1. Download and deploy the self-signed or CA certificate using the following guides according to the used mobile platform:

iOS

  1. Email your “SelfSigned.cer” or “CA-signed.cer” certificate to the iOS device.

  2. Open the email and tap on the attached certificate that you will be asked to install.

  1. Enter the password and confirm installation again.

  2. Certificate is installed you should be able to connect to the MobileHMI server again.

Android

  1. Copy the “SelfSigned.cer” or “CA-signed.cer” certificate to the root of the /sdcard folder inside your Android device.

  2. Inside your Android device, Settings > Security > Install from storage.

  3. It should detect the certificate presence and let you add it to the device.

  4. When done, you should be able to connect to the MobileHMI server again.

  1. Start the MobileHMI application again and connect to the server.

Connected on iOS After Setting Certificate as Trusted

Client Side – Windows Phone

  1. Install the MobileHMI application from the Windows Store.

MobileHMI - Application on Windows Store

  1. Launch the application and define the MobileHMI server name or IP address.

MobileHMI App – Predefined Servers

  1. Tap on the newly added server icon to connect to the server. No certificate validation should  be required or configured as all the server certificates are trusted by default

MobileHMI – Connecting to the Server

  1. Once you connect to the server, you should be able to browse through layouts and tiles structure and see the content.

MobileHMI – Browsing Tiles and Viewing Displays

 

 

 

See Also:

Welcome to MobileHMI

Enhanced HTTPS Security