REST API - creating and importing REST API certificates
Create, export, and import a REST API server certificate in Command Centre.
This page covers the server certificate, which lets the client trust Command Centre. The certificate does not need to be created on the Command Centre server.
Create
Run PowerShell as Administrator:
New-SelfSignedCertificate -certstorelocation cert:\currentuser\my -dnsname GallagherRestClientCertOpen the certificate in MMC and copy the Thumbprint.
Export
Open the certificate's Details tab, then choose Copy to File.
Select Yes, export the private key, and accept the defaults.
Enable Password and enter one.
Browse to a location and save.
Import to Command Centre
Go to Server Properties → Web Services.
Untick "Enable REST Clients with no client certificate".
Choose Manage Certificates → Custom Certificate → Import.
Select the saved certificate, enter the password, and choose OK.
Choose Apply.
Alternative: custom server certificate via the Windows Certificate Store
Name the certificate exactly "Gallagher Command Centre Server", place it in the Gallagher Applications / Certificates folder of the Local Computer certificate store, and grant Command Centre rights to use it. A custom server certificate is not required for experimental development.
🔗 Related
REST API - Creating the Client Certificate. The matching client certificate.
REST API - Certificates. How the two trust checks work.
Last updated
Was this helpful?
