Set up the Hybrid Connector to trust the certificates issued by your own Certificate Authority (CA), check the installation and fix the most common errors.
When to install Certificate Authority certificates
If your network uses certificates issued by your own CA, for example because your on-premises servers use certificates from an internal CA, the management sessions started by the Hybrid Connector do not trust those certificates, and their connections fail.
To fix this, copy your CA certificates into C:\temp on the Hybrid Agent Server. They are installed in the management session containers every time a session starts.
Install Certificate Authority certificates
What you need
Certificates to prepare
- Your root CA certificate. It is always required
- Your intermediate CA certificates, if your certificate chain includes any
Each file must:
- Contain a CA certificate only: no server certificates and no private keys, so PFX and P12 files are not accepted
- Contain one certificate, in
.cerformat: binary (DER) or Base64 - Be currently valid: not expired, and not set to become valid at a future date
Installation procedure
Step 1: Name the files
Name the files as follows (names are not case-sensitive):
- The root CA: a name that starts with
root, such asroot.cer - Each intermediate CA: a name that starts with
inter, such asinter1.cerandinter2.cer
Check file names and extensions
Files with other names or extensions, such as company.cer or root.pfx, are ignored.
Step 2: Copy the files
Copy the files into C:\temp on the Hybrid Agent Server. Always include the root CA of your intermediate CAs.
Step 3: Restart the management session
Certificates are installed only when a session starts, so files copied while a session is running are installed at the next session start.
Check the installation
Every time a session starts with certificates in C:\temp, the Hybrid Connector adds an entry to C:\temp\Logs\startup.txt on the Hybrid Agent Server. A successful installation looks like this:
===== <date> <time>
Installing certificates from C:\temp
Installed root.cer (CN=Contoso Root CA) -> LocalMachine\Root [<thumbprint>]
Installed inter1.cer (CN=Contoso Issuing CA) -> LocalMachine\CA [<thumbprint>]
Certificate installation process completed!When startup.txt exceeds 1 MB, it is deleted and recreated with the next entry.
You can also check the certificates with the Diagnostic Tool.
Troubleshoot installation errors
If any certificate has a problem, none is installed. The management sessions still start, but without your certificates.
The entry in startup.txt names the file, describes the problem and ends with:
ERROR: the certificates in C:\temp were NOT installed. The reason is above.Find the problem in the table below.
| Log entry | Cause and fix |
|---|---|
No new entry in startup.txt after the session started |
No file has a valid name. Check that the names start with root or inter, that the extension is .cer (not .crt) and that the files are directly in C:\temp. |
No root*.cer in C:\temp |
Add your root CA, in a file whose name starts with root. |
It's not a single X.509 certificate |
The file is not a single certificate in .cer format. |
is not a CA certificate or is not allowed to sign certificates
|
It is not a CA certificate, for example it is a server certificate. |
is not valid today |
The certificate has expired or is not valid yet. |
is not a root or is not self-signed
|
The file whose name starts with root is not your root CA. If it is an intermediate CA, give it a name that starts with inter, and add your root CA. |
Does not chain to any root*.cer |
The root CA of this intermediate CA is missing, or an intermediate CA between them is missing. Add the missing files. |
Failed chain validation |
The certificates do not form a valid chain. |
Change or remove certificates
Add or replace
Copy the new or updated files into C:\temp, then restart the management session.
Renew before expiry
Replace each CA certificate before it expires. If one certificate expires, none is installed. From the next session start, the management sessions run without your certificates and cannot connect to your servers.
Remove
Delete the file from C:\temp. The management session containers are recreated at every session start, so the certificate is no longer installed from the next one.
Restrict access to C:\temp
Anyone with write access to C:\temp can make the management sessions trust any certificate authority. Grant write access to administrators only, and make sure the folder contains only the CA certificates you want the Hybrid Connector to trust.