Installation of Comet Backup on Synology NAS fails: x509: certificate signed by unknown authority ERROR: Failed to log in using the given credentials

Symptoms

  • When attempting to install or update the "Comet Backup" package on a Synology NAS via the Package Center, the installation fails during the Confirm settings stage. The following error message is shown:

    CONFIG_TEXT: Failed to install "Comet Backup". Retried 5 times over 0:05: Post "https://cometserveraddress.com/api/v1/user/get-profile-and-hash": tls: failed to verify certificate: x509: certificate signed by unknown authority ERROR: Failed to log in using the given credentials.

  • The same x509: certificate signed by unknown authority error can also appear on Synology devices in the following situations:
    • Existing Synology devices stop checking in and show as offline in the Comet Server, and their backups fail, after the Comet Server certificate was replaced, while Windows and other workstation devices are not affected.
    • Reinstalling the package on the NAS does not help, and the same error is shown when installing on a Synology NAS that never had Comet Backup installed.
    • Testing the connection to an S3-compatible Storage Vault from the Synology device fails with:

      CONFIG_TEXT: BucketExists: Get "https://s3.example.com:8081/comet/?location=": tls: failed to verify certificate: x509: certificate signed by unknown authority

      while the same test succeeds from a Windows device.

Cause

This issue occurs due to a combination of outdated installation package bugs and a local network configuration error:

  • Outdated Synology Installer: Older versions of the Comet Backup Synology installer contain known bugs related to network handling and connection verification during setup.

  • SSL/TLS Interception (Unknown Authority): The primary network cause is a misconfigured network proxy or gateway sitting in front of the Comet Server. Instead of a direct, secure connection to the wildcard-certified domain, the traffic is being intercepted. This proxy is presenting its own self-signed or untrusted SSL certificate, which the Synology NAS rejects as an "unknown authority." Corporate proxies and ISP-level security proxies that re-sign HTTPS traffic with their own certificate can have the same effect.

  • Root CA not trusted by Synology DSM: The certificate on the Comet Server (or on the S3-compatible storage) is signed by a certificate authority whose root certificate is not in the trusted certificate store of the Synology NAS. Comet Backup does not install certificates; it uses the operating system's own trust store. Root CA certificates are normally delivered by operating system security updates, so a recently issued root certificate may be missing, and an outdated or unpatched operating system can show the same error.

Resolution

  1. Download the Latest Installer: Major bug fixes have been applied to the Synology installer in version 26.4.5 and later. Log into your Comet Server admin dashboard, download the latest version of the Synology .spk installer package, and perform a manual installation.

  2. Correct Network Proxy Configuration: Inspect your local network routing, firewalls, or reverse proxies. Ensure that the network path to the Comet Server address is not improperly intercepting and replacing the SSL/TLS certificate. The proxy must correctly trust or pass through the valid wildcard certificate.

  3. Update the Synology Trusted Certificates: If the Synology NAS does not trust the root CA of the certificate, first install the available DSM security updates, which normally update the certificate store. If the error persists, install the root CA certificate manually on the Synology NAS:

    3.1. Copy the CA certificate files ending in .crt to the /var/db/ca-certificates directory and change their permissions to 644.

    3.2. Run the script provided by Synology: update-ca-certificates.sh (or /usr/syno/bin/update-ca-certificates.sh if it is not in your path).

    3.3. Reboot the Synology NAS.

  4. Maintain HTTPS Settings: Do not downgrade your server URL to HTTP as a workaround. Keeping the URL set to HTTPS is critical for encrypting authentication and control traffic between the NAS and the Comet Server.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.