Freeway Installation and Setup Publication (Revision 1.0.1)

Step 1 - Ostendo API Setup

        

Previous Topic

Ostendo to Freeway communication requires the Ostendo API to be installed and connected to the Ostendo database itself. Communications between these two platforms can be configured to use either HTTP or HTTPS protocol. HTTPS require SSL certificates to be generated. This process is not included in this documentation. Instead, please refer to your IT support Professional for assistance with the generation of these certificates.




Windows Firewall Exceptions

  • As Freeway does not require a Static IP address, a Port Forwarding rule must be setup on the Router to forward all Freeway traffic to a specific Port on the Server. Any port maybe allocated for this.
    • Windows Firewall Exceptions (both Inbound and Outbound) must be created for the specified port. 
    • Go to Windows Firewall ->Advanced Settings -> Inbound Rules and select New Rule

    Please refer to your IT Support Professional for Port Forwarding setup specific to your Router

    It is suggested your IT Support Professional is involved in this process

  • Rule Type = 'Port' (click Next)

  • Protocol & Ports = 'TCP', Specified local port = the designated Ostendo API port number (click Next)
  • Action = Allow the Connection (click Next)
  • Profile = Applies to Domain, Private, Public (click Next)
  • Name = Give the Rule an appropriate Name eg: Ostendo API (click Finish)
  • Now click Outbounds Rules and repeat the same steps as above


Information

For environments with very strict security that block access to websites, please ensure their rules allow the following sites to be accessed

www.freewayapi.com

http://api.ipify.org

These are required to allow Freeway to send API keys to the cloud and determine IP addresses stored for Freeway to connect to Ostendo


Installing Ostendo API Software

  • Launch Ostendo ensuring you take the "Run as Administrator" option. (Right click on the Ostendo icon)
  • Go to File -> API Service -> API Configuration
  • Drop down the API Service box and select "Install"
  • Once the installation process has completed (should take a couple of seconds) you will be returned to this screen (Click OK)
  • An information box will be displayed asking if you wish to re-start the API service now. It does not matter whether you answer "Yes" or "No" as we will be Starting the service the Service later

This completes the initial Ostendo API Software Installation. Follow the Instructions below for configuring for HTTP or HTTPS (Preferred Option)


HTTP API Setup 

Access the API Configuration screen

  • Enter the designated Port number in "Service Port" in the "Settings" tab and click on the "Config 0" tab. (NB: Port forwarding must have already been setup on this port) 
  • From the Config 0 tab
    • Tick "Active"
    • Tick "Allow Freeway Access"
    • Browse to the Ostendo Database you will be connecting to
  • An information box will be displayed asking if you wish to re-start the API service now. Answer "Yes"
  • Now check to ensure the Service has started successfully by accessing the API Configuration screen again and checking the "Service Status" is now Started

Test the API Service Connection (Local and Remote separately)

Local IP Address Test:

 From the Windows Command DOS prompt type Ipconfig

  • Note the IPv4 Address. This is your local IP address
  • Type the IP address into your browser along with the designated port number separated by a colon 199.999.9.99:82 (Notice the ‘:’ between the IP address and the designated Port No.)
  • Your browser should return this screen proving that you have contacted the API successfully. (NB: The version number maybe different)

External IP Address Test:

  • From your browser google ‘whats my IP address’
  • Google will return your current external IP address.
  • Type the IP address into your browser along with the designated port number separated by a colon 199.999.9.99:82 (Notice the ‘:’ between the IP address and the designated Port No.) 
  • Your browser should return this screen proving that you have contacted the API successfully. (NB: The version number maybe different)


HTTPS API Setup

For enhanced security, it is strongly recommended that HTTPS be used in preference to HTTP. This is because HTTPS sessions are encrypted. Use HTTP only if the HTTP requests are not routed via the internet.

 Steps to implement HTTPS:

It is strongly recommended that your IT Support Professional is involved in this process

  • The company needs to obtain an SSL certificate (Signed by a Certificate Authority) for the domain name they wish to use for this (cannot be an IP address)
  • Once obtained the certificate must be installed on the server
  • Then the certificate must be bound to an IP/port and a URL reservation made in http.sys (Link below on configuration)
  • In Ostendo (API Configuration) the flag must be set to use https and appropriate port set, then both override IP’s must be set to the new https domain name

To use HTTPS, you will require an SSL Certificate and SSL Key. Obtaining and setting these up are deliberately not covered off in this document as the methods vary from site to site. Your IT Support provider must set this up and prove it is working in advance of any Ostendo API setup. This link maybe of assistance to your support provider. NB: This process is not related to Ostendo therefore Development-x cannot assist with this.

https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/configuring-http-and-https#configuring-ssl-certificates

Once the Certificate has been applied and proven to operate correctly by the IT Support Provider, you can amend the necessary Ostendo API Configuration settings as follows.

Warning NB: The Ostendo API Service Session must run either entirely HTTP or HTTPS, not a mixture of both.

Access the API Service Configuration screen

  • Tick ‘Use HTTPS’ (NB: Port forwarding must have already been setup on this port)
  • Specify the HTTPS designated Port number that has been assigned with port forwarding
  • Specify the Domain name in the ‘Override Local IP Address’
  • Specify the Domain name in the ‘Override Remote IP Address’
  • From the Config 0 tab
    • Tick "Active"
    • Tick "Allow Freeway Access"
    • Browse to the Ostendo Database you will be connecting to
  • An information box will be displayed asking if you wish to re-start the API service now. Answer "Yes"
  • Now check to ensure the Service has started successfully by accessing the API Configuration screen again and checking the "Service Status" is now "Started"

Test the API Service Connection (Local and Remote combined):

  • Through your web browser, type your address and designated port number separated by a colon. eg: https://bobsbikes.com:8012
  • Your browser should return this screen proving that you have contacted the API successfully. (NB: The version number maybe different)


Information
More Information:

Certificate Authorities, or Certificate Authorities / CAs, issue Digital Certificates. Digital Certificates are verifiable small data files that contain identity credentials to help websites, people, and devices represent their authentic online identity (authentic because the CA has verified the identity). CAs play a critical role in how the Internet operates and how transparent, trusted transactions can take place online. CAs issue millions of Digital Certificates each year, and these certificates are used to protect information, encrypt billions of transactions, and enable secure communication.


An SSL Certificate is a popular type of Digital Certificate that binds the ownership details of a web server (and website) to cryptographic keys. These keys are used in the SSL/TLS protocol to activate a secure session between a browser and the web server hosting the SSL Certificate. In order for a browser to trust an SSL Certificate, and establish an SSL/TLS session without security warnings, the SSL Certificate must contain the domain name of website using it, be issued by a trusted CA, and not have expired.



Applying the Mobility Licence Key

Now we have the API software setup and configured, we need to apply the Mobility Licence to the Ostendo database. At the completion of this process, 'one' local Ostendo license will be consumed. Therefore ensure you have enough user licenses available to cope one license being utilised exclusively for the API

Your should have already been supplied with a License file (.flf) from Development-X when the Ostendo Company license was issued last. Ensure you can browse to this file on your server.

  • You should first Stop the Ostendo API service before applying any Mobility License. Do this either via the Windows Services Application (look for "Ostendo Rest API Service") or from the API Configuration screen (File -> API Service -> API Configuration
  • ​Go to Mobility -> Settings -> Mobility Rules 
  1. Type in a Registered Company Name. This will be displayed in Freeway (Typically, this would be your company name)
  2. Press the License button
  • The following screen will now be displayed

1. Browse to the .flf file and select it

2. IMPORTANT !! Now you need to tell Ostendo how you wish to apply this license. Before pressing the OK button ensure you have understood these two options fully before selecting the appropriate one.

Update Cloud Record - Only to be used in Live Database environments when either initially applying the Key or when the license key is being renewed (this done annually)

Warning
This Option will update the cloud record. If updated, all mobile devices with the current licence code from here on will use the host/ip addresses configured for the API service that is connected to this Ostendo database. This option is appropriate for updating an expired/expiring licence.

3. Update Ostendo Database Only - Only to be used if a Consultant is working on a copy of a Clients Live database

Warning This Option will only update the Ostendo database with the new licence code. This option is appropriate for consultants who are testing mobile devices with a clients database and want to change the licence code to their own without changing the clients cloud record.
  • Once you have selected the appropriate option, press the OK button to continue

  • Restart the API service either via the Windows Services Application (look for "Ostendo Rest API Service") or from the API Configuration screen (File -> API Service -> API Configuration
  • If the Service has not started, refer to the Ostendo API and Freeway Connection Troubleshooting Topic

Setup The API Security Record

Go to File -> API Service -> API Security

  1. Press the Add Button to add a new Security record 
  2. Type in a "Developer Name" eg: Freeway
  3. Type in a "Product Name" eg: Freeway
  4. "Expiry Date" eg: 31/12/2030 (We suggest you make this date well into the future so you will be able to generate Fast Codes from it if required in the future)
  5. Ticket "SQL Allowed"
  6. Ensure "API Key for" is set to "Internal" for your own Internal Employees
  7. Press the Save Button


Next Topic