The agent is rejecting the server certificate
This page is intended for administrators whose BeBackup agent refuses to connect because of a certificate. It covers two cases: the server certificate does not carry the name used to reach it, or it is not signed by a recognised authority. It also covers client certificate errors. It applies to BeBackup agent 7.
Symptom
The connection fails with one of the following messages.
The name does not match:
The certificate presented by … does not carry this name (certificate names: "…"). … untick "Verify the server certificate" in the agent's "Additional settings...".
After certificate names:, the message may list several names: these are all the names carried by the certificate. If the agent uses a client certificate, the message is different: it does not suggest unticking the check, which cannot be disabled in this case.
The certificate has expired or is not yet valid:
… expired on …. It must be reissued on this server (Configuration > Certificates).;- a message stating that the authority in the certification chain has expired;
… is only valid from …. Check the time…: the certificate is not yet valid, or the workstation's clock is wrong.
The certificate is not recognised:
Verification of the server certificate failed (Code=…). Please make sure that the server certificate is signed by a recognised authority.
This message is followed by an SSL error: … line and a Certificate presented: "…", issued by "…" line, which indicate which certificate the server presented and who issued it.
Cause
The connection between the agent and the server is encrypted. Before sending anything, the agent checks the certificate presented by the server. It verifies two things:
- that the certificate is signed by a certification authority recognised by the workstation;
- that the certificate carries the name, or the IP address, entered in the agent's
Server addressfield.
The first message appears when the agent reaches the server via an IP address, or via a name that the certificate does not carry. This is the most frequent case after an address change, or when an internal workstation uses a local name.
If the certificate does not come from the BeBackup authority, a paragraph is added to the message: the names added to the server's private certificate do not appear in its public certificate.
The expiry messages appear when the server certificate, or the authority that issued it, has passed its end-of-validity date, or when its start date has not yet been reached.
The "Verification of the server certificate failed" message appears when the certificate is self-signed or issued by an authority unknown to the workstation. On Windows, and without a client certificate, the agent first attempts to have the system root certificates updated, then retries once. The message is therefore only displayed if this second attempt also fails. With a client certificate, or outside Windows, there is neither a root update nor a second attempt.
Checks
- Read the names shown in quotation marks after
certificate names:. These are the names the server presents. - Compare them with the
Server addressfield in the agent settings. Any port, after the colon, is not included in the comparison. - Check whether the agent uses a client certificate: in
Additional settings..., is theUse a certificate to connect to the serverbox ticked?
Resolution
The name does not match
The recommended fix is to reach the server by a name that its certificate carries:
- Open the agent settings.
- In
Server address, enter one of the names shown in the message aftercertificate names:. - Click
Test the connection; once the test succeeds, save. As long as a modified connection has not passed its test, theSavebutton remains greyed out.
This name must resolve to the server from the workstation.
If you really must reach the server via an IP address or another name, you can disable this check:
- Open
Additional settings.... - Untick
Verify the server certificate. - Confirm, click
Test the connection, then, once the test succeeds, save.
The connection remains encrypted, but the agent no longer checks the server's identity.
With a client certificate, the check cannot be disabled
When Use a certificate to connect to the server is ticked, the Verify the server certificate box is greyed out and stays ticked. The server certificate check is then always applied. In this case, the only fix is to use a name that the server certificate carries.
The certificate is not recognised
This fix is the responsibility of the BeBackup server administrator. An expired certificate must be reissued on the server, under Configuration > Certificates. For a certificate that is not yet valid, first check the workstation's date and time. The server must present a certificate issued by a recognised authority, for example a certificate obtained automatically from Let's Encrypt. On the workstation, also check that updates to the Windows root certificates are not blocked.
Client certificate errors
If your account uses a client certificate, supplied by your provider as a .bct file, the following messages may appear:
The server requires the use of a certificate. Please generate one for this user.: the server requires a certificate and the agent is not presenting one. Request a certificate from your provider, then declare it in theClient certificatesection of the additional settings.The certificate used to connect to the server is invalid.: the certificate presented is rejected by the server.The SSL/BCT certificate has expired.followed byPlease contact your provider to renew it.: request a new certificate.The password protecting the certificate is incorrect.orUnable to decode the private key.: re-enter the certificate password in theClient certificatesection.The certificate used by the backup agent is not authorised.: the certificate is valid, but the server does not accept it for this account. Contact your provider.
If the problem persists
Contact BeBackup support, or your provider if they administer the server. Please include:
- the complete message, with the names shown after
certificate names:; - the exact contents of the
Server addressfield; - the agent service log,
bbAgent-service.log.
BeBackup is backup built for IT service providers
Backup and restore of workstations, servers, virtual machines and Microsoft 365, encrypted at source with a key we do not hold, on the hosting of your choice.