Configuring Quali API to Work in HTTPS Mode

This article explains how to configure Quali API to run over HTTPS.

To configure Quali API over HTTPS:

  1. In the Quali Server machine, open the Server installation directory's customer.config file (usually at C:\Program Files (x86)\QualiSystems\CloudShell\Server\customer.config).
  2. Add the following keys:

    <add key="QualiApi.Address" value="https://{Quali Server Address}"/>

    • {Quali Server Address" is Quali Server's hosname or IP

    <add key="PortalAddressLinkForEmails" value="protocol://Portal:PortalPort"/>

    • protocol is "http" or "https" if CloudShell Portal is set to use SSL
    • Portal is CloudShell Portal's hostname or IP
    • PortalPort is the port which CloudShell Portal is using (If the port is 443, which is the default https port, remove this parameter and the colon from the key)
  3. Restart Quali Server service.
  4. If you don’t have an SSL certificate on the Quali Server, create a self-signed certificate for port 9000 using this PowerShell script:

    if(-not [string]::IsNullOrEmpty($Env:UserDnsDomain)) {
    $Subject = "${Env:ComputerName}.${Env:UserDnsDomain}"
    }
    else {
    $Subject = $Env:ComputerName
    }
    $certificate = New-SelfSignedCertificate -DnsName $Subject -CertStoreLocation "cert:\LocalMachine\My"
    $thumb = $certificate.GetCertHashString()
    & netsh http add sslcert ipport=0.0.0.0:9000 certhash=$thumb appid=`{1b1e7a9d-1af7-4922-88b9-8220e09cc072`}