Local Cluster - Setup v2

Use the Flowgear Local Cluster Manager app to configure a Host with the Cluster's config.json, send its certificate to Flowgear, and start its background service. The app manages a Windows service on Windows and a daemon on macOS. Trust the certificate in the Flowgear Console so the Host can connect.

Prerequisites

  • The Flowgear local Cluster is installed on a supported Windows or macOS Host. See Install a local Cluster for the Windows procedure.
  • The local Cluster is registered in the Flowgear Console.
  • You have administrator privileges on the machine.
  • To trust the certificate, you need permission to edit the local Cluster in the Flowgear Console.

Adding a Host to a Cluster that already has one? See Add a Host to an existing Cluster. The steps are different because every Host shares the Cluster's trusted certificate.

Step 1: Copy config.json

The Cluster's config.json contains the values the Host needs to connect: your Flowgear tenant Host name, the ClusterKey, and the SiteKey.

  1. Open the local Cluster in the Flowgear Console to view its detail page.
  2. In the Set up this Cluster section under Hosts, copy the config.json with its copy button. You can also download it as a file.

Tip: You can also download a Cluster's config.json from the Local Clusters explorer by selecting Download config.json in the Cluster's menu.

Step 2: Configure and start the Host

  1. On the Host machine, open Flowgear Local Cluster Manager from the Windows Start menu or the macOS Applications folder. Approve an administrator prompt when the app requests authorization for a protected action.

  2. Under Configuration, paste the contents of config.json.

    The app checks the configuration as you type and shows its state: Certificate needed means the configuration is valid but the Host has no certificate yet, and Complete means the configuration and its certificate are ready.

  3. Click Configure & Start.

The app then:

  1. Creates a certificate if the configuration does not name one yet and adds its CertificateThumbprint to the configuration. Windows stores it under Local Computer → Personal → Certificates; macOS stores it in the System keychain.
  2. Saves the Host configuration to config.json.
  3. Sends the certificate's public key to Flowgear as a candidate for an administrator to trust.
  4. Installs the service or daemon registration if it is missing.
  5. Stops the Flowgear Local Cluster Host service or daemon if it is already running, and then starts it.

On Windows, the Manager automatically retries the initial service startup if a cold start does not complete. These retries only repeat the startup attempt; they do not save the configuration, submit the certificate, or install the service again.

The Result panel shows the outcome and any next step. Certificate sent for approval in Console. confirms that the certificate was sent.

The Configuration panel now shows the saved configuration, including the CertificateThumbprint. Copy this value for the next step.

The top-right Settings gear menu contains the service or daemon controls, installation and uninstallation actions, Open Log Folder, and Delete config.

Step 3: Trust the certificate

The Host cannot connect until its certificate is trusted.

  1. Open the local Cluster in the Flowgear Console to view its detail page.
  2. In the Certificate section, open Candidate certificates, and then click Refresh candidates if the certificate does not appear yet.
  3. Find the candidate whose thumbprint matches the CertificateThumbprint from the app. You can search by thumbprint or subject.
  4. Click Trust on that row.
  5. In the Trust certificate dialog, paste the CertificateThumbprint from the app. Trust is only available once the pasted value matches the candidate's thumbprint exactly.
  6. Click Trust.

The Certificate section now shows the trusted certificate's thumbprint. If the Host service or daemon is running, it continues retrying validation and should detect the approval within a few minutes. You do not need to restart it.

If the service or daemon did not start during configuration, open the Settings gear menu in Flowgear Local Cluster Manager, start it, and then check the Result panel for the outcome.

About candidate certificates

  • A candidate expires 24 hours after it was last submitted. Expired candidates show Expired and cannot be trusted. Click Configure & Start again in the app to submit the certificate again.
  • A Cluster can hold up to five candidates, including expired ones. To make room, remove candidates you do not need, either one at a time or by selecting several and clicking Remove selected.
  • Candidates only appear while the Cluster has no trusted certificate.

Step 4: Verify the Host

  1. In the Flowgear Console, click the refresh button beside the Hosts heading on the local Cluster's detail page.
  2. Confirm that the Host appears and shows as online.

Note: The service or daemon status in Flowgear Local Cluster Manager only shows the operating-system state. Running does not confirm that the Host has connected to Flowgear. Check the Host's status in the Flowgear Console.

Add a Host to an existing Cluster

Every Host in a Cluster uses the same trusted certificate, so there is no new certificate to trust. Copy the certificate, including its private key, from an existing Host to the new machine.

When the Cluster has Hosts and a trusted certificate, its detail page shows an Add a Host section under Hosts with these steps and the thumbprint to export.

  1. On a machine that already runs the Cluster, export the certificate with the trusted thumbprint, including its private key, as a password-protected PKCS #12 file. On Windows, find it in certlm.msc under Local Computer → Personal → Certificates. On macOS, find it in the System keychain.
  2. On the new machine, import the certificate and private key into the same machine-wide store: Local Computer → Personal → Certificates on Windows, or the System keychain on macOS.
  3. Install the Local Cluster Host package for the new machine. For Windows, follow Install a local Cluster.
  4. Copy the config.json from the Add a Host section, paste it into the Flowgear Local Cluster Manager app on the new machine, and then click Configure & Start.

The config.json already names the trusted certificate, and the new Host connects once the service starts.

Upload a certificate manually

If a Host cannot send its certificate from the Flowgear Local Cluster Manager app, you can upload the certificate's public key instead.

  1. Export the Host's certificate without its private key as a .cer file. Its thumbprint is the CertificateThumbprint in the Host's configuration. On Windows, find the certificate under Local Computer → Personal → Certificates; on macOS, find it in the System keychain.
  2. Open the local Cluster in the Flowgear Console.
  3. In the Certificate section, expand Upload a certificate manually, and then upload the .cer file.

If the Host service or daemon is running, it should detect approval within a few minutes without a restart. If it is not running, start it from the Manager's Settings gear menu.

Do not upload a .pfx, .p12, or any other file that contains the private key.

Remove the trusted certificate

Remove the trusted certificate when you need to replace it, for example after the certificate is compromised or a Host is rebuilt.

  1. Open the local Cluster in the Flowgear Console.
  2. In the Certificate section, click Remove certificate.
  3. Confirm the removal.

No Host in the Cluster can connect again until a new certificate is trusted. A connection that is already open can stay active until the service on that Host is restarted.

After removal, the Candidate certificates section appears again so you can trust a replacement certificate.

Troubleshooting

The certificate was not accepted

The Result panel shows this message when the Cluster already has a trusted certificate, or when it already holds five candidates. Remove the trusted certificate or unneeded candidates in the Flowgear Console, and then click Configure & Start again.

This Local Cluster could not be found

Check that you copied config.json from the correct Cluster in the Flowgear Console.

The server could not be reached

Check the Host value in the configuration and confirm that the machine has outbound access to port 443.

Too many attempts

The app limits how often it can send a certificate. Wait for the time shown, and then try again.

The service or daemon fails to start

Open the Manager's Settings gear menu and click Open Log Folder to view the Host's log files. On Windows, also check Windows Event Viewer. On macOS, check the daemon output under /Library/Logs/Flowgear/LocalRuntime.

The local Cluster does not come online

First check the service or daemon status in the Manager:

  • If it never started, open the Settings gear menu, start it, and check the Result panel and log files for errors.
  • If it is Running, confirm that the certificate is trusted and that its thumbprint matches the CertificateThumbprint in the Host's configuration. The running Host retries validation automatically, so allow a few minutes for it to detect approval before checking the logs.

See also