VpnHood!

SSL/TLS certificates

Your servers present a certificate at the start of every connection, and the access keys of a server farm name one of its certificates. MANAGER makes one for every new farm, and can get a trusted one from Let's Encrypt and renew it by itself.

Where to find them

Open Server Farms and then the farm: its SSL / TLS Certificates lists them, and a flag marks the one the farm's keys carry. The list's title opens the full list, which adds each certificate's Visibility and Priority.

The SSL / TLS Certificates of a server farm in VpnHood! MANAGER, with one certificate, marked with a flag
A new farm's certificate: self-signed, with a made-up name, and in the keys.

Every new farm gets one: a self-signed certificate with a made-up name, which its keys carry until you choose another.

A server's own page has the same list, with only the certificates that server uses alone.

Use your own domain

To have the farm's keys carry your own domain, with a trusted certificate from Let's Encrypt, you need:

  • A domain or a subdomain you control, such as server1.example.com. Use a single name, not a wildcard, and one that does not say VPN: apps send it in clear at the start of every connection, where the network can read it.
  • A DNS record that points it straight at one of the farm's servers: an A record, and an AAAA record if the server has an IPv6 address. To put Cloudflare in front of the server, finish these steps first, then turn its proxy on.
  • TCP port 80 open on that server for as long as you use the domain: the certificate is checked through it, and renewed through it every few months.

Open Server Farms and then the farm, not a server's own page: a certificate added there belongs to that one server. Under SSL / TLS Certificates, select Add, enter the domain as Domain Name and select Create. MANAGER creates a self-signed certificate for it and opens it.

  1. Edit Signing and choose AutoSign. MANAGER asks Let's Encrypt for a certificate, which checks the domain through your server on TCP port 80.
  2. Wait until Signature reads CA Signed. From then on, MANAGER renews the certificate by itself before it expires.
  3. Edit Visibility and choose Public in keys. Every key of the farm now carries the domain, and the farm's previous certificate becomes Public.
A certificate for server1.example.com in VpnHood! MANAGER, set up as these steps describe: Signing AutoSign (1), Signature CA Signed (2) and Visibility Public in keys (3)
The domain's certificate when it is done: signed by Let's Encrypt, and carried in every key of the farm.

Keys you copy from MANAGER from now on carry the domain. Apps holding an older key get the new one when they connect, as Push token to clients is on by default. Keep the farm's previous certificate until then: older keys work only while it is there.

If the check fails, fix the DNS record or open the port: AutoSign, below, says how MANAGER tries again.

To check, open the farm: under Access Points, the domain comes first.

A certificate's settings

Select a certificate's domain to open it.

A certificate in VpnHood! MANAGER, with its Visibility, Signing, Used By, Priority and Signature
The certificate MANAGER made for a new farm.
  • Visibility decides who gets the certificate's domain. Public in keys puts it in every key of the farm; only one certificate can have it, and giving it to another makes this one Public. A Public certificate that one server uses alone, if it is CA Signed, reaches apps only when MANAGER sends them to that server. A Private one never does. Whatever you choose, servers present the certificate to apps that ask for its domain.
  • Signing decides how it gets signed. Manual leaves it as it is. AutoSign has Let's Encrypt sign it and MANAGER renew it, as below. DomainOnly is for a domain whose certificate lives elsewhere: MANAGER never puts it on servers, and keys cannot carry it.
  • Used By is Server Farm, for every server of the farm, or one of its servers. Keep the certificate in the keys on Server Farm, so every server can present it to the apps that hold them.
  • Priority, Normal, Low or Lowest, orders the domains of Public certificates when MANAGER gives apps several. It does not change which certificate a server presents.
  • Signature reads CA Signed when a certificate authority signed it, and Self-Signed otherwise. Apps check a CA Signed certificate the way a browser does, by its authority and its name, so their keys keep working when it is renewed. A Self-Signed one they accept only by the fingerprint in their key.
  • Description is a note for you. MANAGER does not use it.

Add a certificate

Under SSL / TLS Certificates, select Add, enter a Domain Name and select Create. MANAGER creates a self-signed certificate for the domain, Public and Manual, and opens it. The other fields only fill in the certificate's details.

Added from a server's own page, the certificate is used by that server alone.

To have a certificate authority sign it, set Signing to AutoSign. Use your own domain, above, walks through that, and through putting the domain in the keys.

Use a name of your choice, without a domain

The name your users' apps send in clear is always the name of the certificate in their key: there is no separate setting for it. A Self-Signed certificate can carry any name, even one you do not own, as apps accept it by the fingerprint in their key and never look the name up. So a farm can replace its made-up name without a domain:

  1. On the farm's page, not a server's, add a certificate with that name, and leave Signing on Manual.
  2. Edit Visibility and choose Public in keys. One of the farm's servers must have a Public in keys address, as these keys cannot reach a server by its name.
  3. Once your users' apps have the new key, delete the farm's previous certificate. Until then, a probe that sends no name can still get it, with its made-up name.

This hides less than a trusted certificate, and a real site's name can do more harm than good: Which certificate should your server use? explains why.

AutoSign

With AutoSign, MANAGER asks Let's Encrypt to sign a certificate for the domain. Let's Encrypt checks the domain over plain HTTP on TCP port 80, so the domain must point at one of the farm's servers, with that port open. MANAGER checks the same way first. Meanwhile, Signing shows Validating....

About 30 days before the certificate expires, MANAGER renews it. Let's Encrypt's certificates last 90 days.

If a check fails, Signing shows why, in red. MANAGER tries again about once a day, and after six failures in a row it sets Signing back to Manual. To try again at once, choose Manual and then AutoSign.

Upload a certificate

Upload takes a certificate you got elsewhere: a PFX file with its private key, which must be exportable, and its Certificate Password. Choose its Visibility as you upload it; it starts at Public. Signature reads CA Signed if MANAGER can verify who signed it.

An uploaded certificate is used by the whole farm, even when you upload it from a server's page. To give it to one server, change its Used By afterwards.

The certificate in the keys

The farm's keys carry the domain of its Public in keys certificate, and its fingerprint. If it is CA Signed, apps look the domain up and accept any certificate an authority signed for it. If it is Self-Signed, they accept only that certificate, and they need a server's address to reach it: MANAGER then requires one of the farm's servers to have a Public in keys address.

Giving Public in keys to another certificate leaves the old one on the servers as Public, so older keys keep connecting. Apps get the new key when they connect, as Push token to clients is on by default.

Adding or uploading a certificate for a domain the farm already has replaces the old one, which is deleted. The new one keeps the old one's Visibility if that was higher, so a renewal stays in the keys. Older keys keep working if the new certificate is CA Signed. If it is self-signed, give your users new keys.

Delete a certificate

Select Delete in its dialog. MANAGER does not let you delete the certificate in the keys, or the farm's last certificate used by the whole farm: give Public in keys to another certificate, or add one, first.

Next steps