Generating a BTS Server Certificate

To generate a BTS server certificate, do the following:

  1. Generate a self-signed certificate. It must be a .pfx file.
  2. Import the certificate on the BTS Server.
  3. Open %PROGRAMFILES%\National Instruments\Battery Test System\WebApplication\appsettings.json in a text editor. Add the following XML section to the appsettings.json file, modified to specify your certificate's endpoint url, certificate url, path, and password.
      "Kestrel": {
        "Endpoints": {
            "Http": {
              "Url": http://0.0.0.0:60001
            },
            "HttpsInlineCertFile": {
              "Url": https://0.0.0.0:60002,
              "Certificate": {
                "Path": "C:\\bts\\certificates\\bts.pfx",
                "Password": "xxxxxxx"
              }
          }
      },
      "Certificates": {
        "Default": {
          "Path": "C:\\bts\\certificates\\bts.pfx",
          "Password": "xxxxxxx"
          }
        }
      }
    
  4. Restart the BTS Server. To do so, start the Windows Services application, find and select NI Battery Test System Server in the list, and click Restart.