Generating a BTS Server Certificate
- Updated2023-05-04
- 1 minute(s) read
Generating a BTS Server Certificate
To generate a BTS server certificate, do the following:
- Generate a self-signed certificate. It must be a .pfx file.
- Import the certificate on the BTS Server.
-
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" } } }
- 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.