How to switch from Http to Https

Open the appsettings.json file in the MobileWeb folder (typically TotalviewInstallationFolder\WCF\MobileWeb_WCF\appsettings.json)

    "Kestrel": {
        "Endpoints": {
            "Http": {
                "Url": "http://+:8000"
            }
        }
    }
}
Replace the Http section so it looks like this.
Remember to keep the Url port the same as before.
Change the Certificate to a valid certificate that is available on the computer.
    "Kestrel": {
        "Endpoints": {
            "Https": {
                "Url": "https://+:8000",
                "Certificate": {
                    "Subject": "localhost",
                    "Store": "My",
                    "Location": "LocalMachine",
                    "AllowInvalid": false
                }
            }
        }
    }
}

NB! The MobileWeb connecter needs to be restarted for this to take effect.

To verify if this works you can navigate to the page https://[dns-name-of-wcf].fo/rest/registerversion and you should get a response without a certificate error.

How to list certificates on the machine

The best way is using Manage Computer Certificate and looking in Local Computer / Personal / Certificates. It is also possible to use PowerShell as administrator and running.

(Get-ChildItem -Path Cert:\LocalMachine\My | ForEach-Object { 'Thumbprint: {0} | Subject: {1}, | HasPrivateKey: {2}' -f $_.Thumbprint, $_.Subject, $_.HasPrivateKey })