Installing certificates
Deploying a Synnax Core to production
This page is a guide on how to install CA certificates on client machines to enable communication with a Synnax Core using a self-signed certificate. Select your operating system below.
Linux
Windows
macOS
Linux
To start off, you’ll need to pull the CA certificate from the Core. If you have ssh
access to the Core, you can use the scp command to pull the certificate:
scp user@core:/path/to/ca.crt /tmp/synnax-ca.crtOn Debian and Ubuntu, copy the certificate into the local CA directory and rebuild the trust bundle:
sudo cp /tmp/synnax-ca.crt /usr/local/share/ca-certificates/synnax-ca.crt
sudo update-ca-certificatesOn RHEL and Fedora, use the CA trust anchors directory instead:
sudo cp /tmp/synnax-ca.crt /etc/pki/ca-trust/source/anchors/synnax-ca.crt
sudo update-ca-trustOn a machine where you can’t change the trust store, point the Driver at the certificate
file instead. The Driver service and synnax-driver login read
/etc/synnax/driver.env, so add:
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/tmp/synnax-ca.crtAdd the line before you run synnax-driver login, because login checks the connection
to the Core.
Windows
To start off, you’ll need to pull the CA certificate from the Core. Once you have the
certificate, you can install it using the Import-Certificate command. Note that you
may need to open PowerShell as an administrator to run the command.
Import-Certificate -FilePath PATH_TO_CA_CRT -CertStoreLocation Cert:\LocalMachine\RootmacOS
To start off, you’ll need to pull the CA certificate from the Core. If you have ssh
access to the Core, you can use the scp command to pull the certificate:
scp user@core:/path/to/ca.crt /tmp/synnax-ca.crtOtherwise, you can copy and paste the certificate into a new file. Open a new terminal and run the following command:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /tmp/synnax-ca.crtThe Driver does not read the Keychain. Point it at the certificate file instead, in the
same shell that runs synnax-driver:
export GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/tmp/synnax-ca.crt