Documentation Security Updated

Certificates

What PluggedDesk does with a server's certificate, the three settings, what is remembered, and what each one does not protect you from.

Why it matters

When you connect, the server shows a certificate. It is how you know that the computer answering is the one you meant, and not something in between that will pass your password along after reading it.

The three settings

The setting is Certificate policy (rdp.security.certificatePolicy), under Security in a connection's properties. Like every setting it can be made on a folder, a computer or a connection.

Setting What PluggedDesk does Use it when
strict (the default) Accepts only a certificate that your computer can verify. Anything else ends the attempt before a credential is sent. The server has a certificate from an authority your computer trusts. In a Windows domain, that is usually the case.
trust-on-first-use Remembers the certificate the computer shows the first time, and from then on accepts only that one. A different certificate ends the attempt before a credential is sent. The server has a self-signed certificate, as most computers outside a domain do.
prompt-each-session Accepts the certificate for this one session, and remembers nothing. You want to decide each time.

There is no setting that ignores certificate errors for good. That is by design.

Trust on first use

The first time. With trust-on-first-use, PluggedDesk remembers the certificate the computer shows on the first connection. That first connection is the one moment it cannot check anything: make it on a network you trust, or compare the fingerprint (below) with the one the computer's administrator gives you.

Every time after. The remembered certificate is sent to the RDP engine with each connection, and the engine compares it inside its own certificate check, before the encrypted connection is even complete. A different certificate ends the attempt there, and your password is not sent. (The one exception, a certificate your computer can verify by itself, is under What it does not cover.)

What is remembered is the certificate's SHA-256 fingerprint, with its subject and issuer, for the address and port the connection uses. It is kept in your own settings on this computer, not in the workspace: everyone who uses a shared workspace decides for themselves what they trust. A computer reached once by name and once by IP address is remembered twice.

When you choose "Always accept for this connection" after a refusal under strict, the certificate remembered is the one the tab just showed you, fingerprint and all. If a different certificate appears between your click and the connection, it is refused as changed: what you accepted is exactly what you get.

When the certificate changes

The tab says This computer's certificate has changed and shows both fingerprints: the one remembered and the one shown now. Nothing was sent to the computer.

A changed certificate has ordinary causes: the computer was reinstalled, or its certificate was renewed. It is also exactly what someone intercepting the connection looks like, and from this side the two cannot be told apart. So:

  1. Ask the computer's administrator for its certificate's SHA-256 fingerprint. On the computer itself, it is in the Remote Desktop certificate store (certlm.msc, Remote Desktop › Certificates).
  2. Compare it with the one the tab shows now, character by character. You can select and copy both.
  3. Only if they match, choose Accept the new certificate and connect. It replaces the remembered one.

To make PluggedDesk forget a computer's certificate, right-click the connection in the workspace and choose Forget remembered certificate. The next connection under trust-on-first-use remembers the one shown then.

What it does not cover

  • A certificate your computer can verify by itself (one from an authority it trusts, issued for that name) is accepted as it would be under strict, without comparing it with the remembered one. The remembered certificate guards exactly the certificates no authority vouches for.
  • An RD Gateway's own certificate is not remembered. Under trust-on-first-use it is accepted for the session, as before; under strict it must be one your computer can verify. The certificate of the computer behind the gateway is remembered and checked as usual.
  • The first connection, as above.

Legacy RDP security

Remote Desktop can also run without TLS, with what it calls standard or legacy RDP security. There is no certificate to check then, so a computer, or anything in between, that chooses it would get your password unchecked. Versions of PluggedDesk before 0.5.1 accepted it whenever the other end chose it, under every certificate policy.

PluggedDesk 0.5.1 refuses it. The tab says The computer offers only legacy RDP security (or The computer didn't offer a secure connection), and nothing was sent.

If you must connect to an old server that offers nothing else, turn on Allow legacy RDP security (rdp.security.legacyRdpSecurity) under Security for that connection only, and know what it means: the computer's identity is not checked on that connection, and the connection's dashboard says so. The better cure is on the server: allow TLS, which is Remote Desktop's default.

Making strict work

If a server is refused under strict, the cure is a certificate your computer can verify:

  • In a domain, give the server a certificate from your own certificate authority. Computers in the domain trust it already.
  • Outside a domain, install the server's certificate, or the certificate of whoever issued it, in the Trusted Root Certification Authorities store of your computer.

What you will see

The tab says It means
The computer's identity can't be verified The policy is strict and the certificate could not be verified. No credential was sent. The tab shows the certificate's fingerprint.
This computer's certificate has changed Under trust-on-first-use, a certificate other than the remembered one. No credential was sent. See above.
The computer offers only legacy RDP security The computer, or something in between, refused TLS. No credential was sent. See above.
Sign-in was rejected The certificate was accepted, and the server refused the user name or the password.

After a refusal under strict, the tab offers to accept the certificate for this session, or always for this connection. The second is a saved change to the connection's certificate policy, the certificate is remembered, and the status bar says both. A connection's dashboard shows whether a certificate is remembered for it, and since when.