Sign in
Guide · For IT administrators

Set up OT Cred RD Gateway

Let people reach their office computers from home or on the road with Remote Desktop, and sign in with a QR code and the OT Auth app. You install the gateway once on a Windows Server; the office computers keep using OT Cred.

1. How it works

Remote Desktop (home PC) ──443──▶ RD Gateway + OT Cred ──3389──▶ office computer with OT Cred
   opens the connection file        checks the file's key           QR sign-in with OT Auth

Each person gets a connection file (.rdp) from you. The gateway lets that file through to one office computer only. On that computer, Windows shows its sign-in screen and the person signs in with the OT Cred QR code. The connection file never signs anyone in to Windows by itself: that always needs an OT Auth approval or the Windows password.

2. Before you start

  • Gateway server: Windows Server 2019, 2022 or 2025 (64-bit). A Windows 10 or 11 PC cannot be a gateway. The Windows Remote Desktop Gateway role is installed for you if it is missing.
  • A public address for the gateway, for example rdg01.example.com, pointing to the server (or to your router or firewall in front of it), with TCP port 443 open from the internet.
  • A certificate for that address from a certificate provider (for example a .pfx file with its password, or PEM files). Self-signed certificates are not accepted for the gateway.
  • Office computers with OT Cred 1.4.1 or later, linked to your account, with people assigned in the client portal. The gateway must reach them on TCP 3389.
  • A way back in that does not depend on the gateway: console or hypervisor access, and an administrator account with a password, on the gateway and the office computers.
  • Network Level Authentication (NLA) may be turned off on the office computers. OT Cred turns it off for Remote Desktop when you prepare a computer (why, and what that means). If your Group Policy requires NLA on those computers, change that policy for them first.

3. Install on the gateway server

  1. Download OTCredRDGatewaySetup on the gateway server. Before running it, check the file in PowerShell: Get-AuthenticodeSignature must show Valid, signed by ORVIX TECHNOLOGIES PRIVATE LIMITED, and Get-FileHash must match the SHA-256 on the download page.
  2. Run the setup and approve the administrator prompt.
  3. When it finishes, OT Cred RD Gateway Manager opens. You find it later under Start › OT Cred RD Gateway.

4. Set up the gateway

On the manager's Start page, there are three steps:

StepWhat to do
1. CertificatePick your certificate if it is already installed, or click Add certificate file…. A .pfx asks for its password; PEM files with the private key are also accepted.
2. Gateway addressChoose the address people connect to. The list shows the names in the certificate. If it starts with *, replace * with the name you use, for example rdg01.
3. ComputersType each office computer's name, as this server reaches it, and click Add. For example pc01 or pc01.office.example.com. Add as many as you need.

Click Set up the gateway. The manager takes a backup, checks that its files are signed, binds the certificate, creates the gateway's keys, switches RD Gateway to OT Cred and schedules daily maintenance. Windows is not restarted; open connections through the gateway drop once.

The Start page then shows This gateway is ready and, under Then, on each computer, the address for your computers (this server's local IP address). You need it in the next step.

OT Cred RD Gateway Manager, Start page: This gateway is ready, people connect to rdg01.example.com and can reach three office computers; step 1 shows the certificate *.example.com
When the gateway is set up, the Start page says This gateway is ready. Steps 1 to 3 show the certificate, the address and the computers in use.
Then, on each computer: Address for your computers 10.0.0.5, three numbered steps and a Copy address button
Further down the Start page: the address for your computers, which you enter on each office computer in the next step.

Before anything changes, the manager checks which Windows roles and features this server needs. On a server without the Remote Desktop Gateway role this can take up to a minute; the status bar shows the time so far. Then a confirmation lists exactly what will be done. If the role is missing, it names the main Windows roles and features Windows will add for it and counts their parts; the full list is under Show details. These come from Windows Server itself, so nothing is downloaded. Usually they are:

  • Remote Desktop Gateway (Remote Desktop Services)
  • Web Server (IIS) with the parts RD Gateway uses, including IIS 6 Metabase Compatibility
  • RPC over HTTP Proxy
  • Network Policy and Access Services
  • their management tools, for example Remote Desktop Gateway Tools

It also lists what OT Cred changes: a backup first, the certificate bound to RD Gateway (HTTPS, port 443), the OT Cred plug-in in C:\Program Files\OTCred\RDGateway, RD Gateway switched to OT Cred connection files, and the daily maintenance task OTCred\RD Gateway maintenance at 03:30.

If Windows asks for a restart after installing the Remote Desktop Gateway role, restart the server, open the manager again and click Set up the gateway once more.

5. Prepare each office computer

On every office computer in the list:

  1. Open OT Cred Device Manager and go to Remote access.
  2. In Sign-in through the RD Gateway, enter the address for your computers from the gateway's Start page (step 4) in RD Gateway address.
  3. Optionally, click Add a recovery admin PC… and enter the address of an administrator PC in Recovery admin PC (optional), so you can still reach the computer directly.
  4. Click Turn on and confirm.
OT Cred Device Manager, Remote access page: RD Gateway address 10.0.0.5 with Turn on and Turn off buttons, and the status: On, Remote Desktop is accepted only from 10.0.0.5
On each office computer: Device Manager › Remote access. Enter the address for your computers in RD Gateway address and click Turn on.

From then on, Remote Desktop to that computer is accepted only from the gateway (and the recovery PC), and the OT Cred QR code appears in the remote session. Turn off restores the previous Remote Desktop settings. OT Cred remembers the address you entered.

For many computers, the same as a command (scripts, Group Policy, remote management): "C:\Program Files\OTCred\OTCredWindowsAgent.exe" --rdp-gateway 10.0.0.5 --recovery 10.0.0.50. --rdp-gateway status shows the current settings and --rdp-gateway off restores them.

Network Level Authentication (NLA) is turned off

Important: Turn on switches off Network Level Authentication for Remote Desktop on that computer. This is required for QR sign-in through the gateway, and it is why OT Cred first limits Remote Desktop to the gateway.

Why it is needed. With NLA on, Remote Desktop asks for the Windows user name and password on the PC people connect from, before the office computer's sign-in screen is shown. The OT Cred QR code is on that sign-in screen, so with NLA on it never appears. With NLA off, Remote Desktop connects first and the person signs in on the office computer's own screen, with the QR code and OT Auth. The connection files are made for this: they do not ask for a Windows password on the home PC.

What it means. With NLA off, anyone who can reach the computer's Remote Desktop port (TCP 3389) sees its Windows sign-in screen without signing in first. Signing in still needs an OT Auth approval or the account's password. That is why Turn on does these steps, in this order:

  1. It limits the computer's inbound Remote Desktop firewall rules to the gateway's address (and the recovery PC, if you entered one). It stops if it finds no Remote Desktop rule to limit.
  2. It turns NLA off and requires TLS with high encryption for Remote Desktop.
  3. It saves the previous settings once, so Turn off can restore NLA, the security layer, the encryption level and the firewall rules exactly as they were.

What you should still check yourself, because OT Cred changes only Windows Firewall on that computer:

  • no other firewall rule, router, cloud firewall or port forwarding lets the internet reach TCP 3389 on the office computers (only the gateway's port 443 should be open from outside);
  • IPv6: the same limits apply to IPv6 addresses, if your network uses it;
  • an account lockout policy on the office computers, so passwords cannot be guessed endlessly at the sign-in screen;
  • remote management tools that rely on NLA, if you use any.

Remote Desktop directly to the computer (not through the gateway) works afterwards only from the recovery PC. People on the office network who used to connect directly need a connection file, or you add their PC as the recovery PC.

Group Policy. If Group Policy requires NLA, Device Manager shows "Off. Your organisation's Group Policy requires NLA on this computer, so it cannot be turned on here." and nothing is changed. Change the policy for these computers first: Computer Configuration › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Security › Require user authentication for remote connections by using Network Level Authentication, set to Disabled or Not configured. Then run gpupdate /force and click Turn on again.

6. Remote Desktop certificate on the computers

Remote Desktop checks the office computer's certificate against the name in the connection file. Without a matching, trusted certificate it shows a name or certificate warning and may refuse to connect. In OT Cred Device Manager, Remote access › Certificate for Remote Desktop, choose one of these:

Your situationWhat to do
The PCs people connect from have no internet access, or you have no company certificate for the office computersClick Create certificate and enter the name the connection files use (for example pc01.office.example.com). Save the offered <COMPUTER>-RemoteDesktop.cer. On each PC people connect from, install it once: double-click the .cer › Install Certificate › Local Machine › Trusted Root Certification Authorities. For many PCs, deploy the .cer files by Group Policy. Save certificate for clients… saves the file again later.
You have a company certificate (for example *.example.com) and the PCs people connect from have internet accessClick Choose company certificate… and pick the PFX or PEM files. The certificate must cover the computer's name in the connection file.
Go back to the Windows defaultUse Windows' own certificate
Device Manager, Certificate for Remote Desktop: Create certificate, Save certificate for clients, Choose company certificate and Use Windows' own certificate buttons, and the current certificate: a company certificate for pc01.office.example.com
Device Manager › Remote access › Certificate for Remote Desktop. The line at the bottom shows the certificate Remote Desktop uses now.

7. Create connection files

  1. In RD Gateway Manager, open Connection files.
  2. Choose the Computer, and type who the file is for in For (person or device), for example "Ravi – laptop".
  3. Click Create connection file… and save it.
  4. Send the file to that person privately, for example by your company email or chat. Treat it like a key: anyone who has it can reach that computer's sign-in screen.
RD Gateway Manager, Connection files page: Computer pc01.office.example.com, For (person or device) Ravi - laptop, Sign the file with the gateway certificate ticked, and the Create connection file button
Connection files: pick the computer, type who the file is for, then click Create connection file….

The file is signed with the gateway's certificate, so Remote Desktop shows your company as the publisher. One file per person and device makes it easy to stop just that one later.

8. Connecting (for the people you send files to)

  1. Double-click the connection file. Windows' built-in Remote Desktop opens; nothing else needs to be installed.
  2. Remote Desktop connects through the gateway and shows the office computer's Windows sign-in screen.
  3. Choose the OT Cred tile and scan the QR code with OT Auth. The very first time, Windows asks for the account's password once.

9. Everyday management

TaskWhere in RD Gateway Manager
A new person or deviceConnection files › Create connection file…
Someone left, or a laptop was lostConnection files › select the file(s) › Stop selected files. That file stops working at once; the others keep working.
Add or remove an office computerStart › step 3 › Save computer list only. Files for a removed computer stop working. Prepare a new computer as in step 5.
Renew the gateway certificateStart › step 1 › add the new certificate file, then Set up the gateway. Existing connection files keep working.
Stop every file at onceSettings › Apply / reset configuration. New keys are created and every connection file must be created again.
Clipboard, drives, printers and other device optionsSettings › Device options. New files get them; apply them to an existing file on Connection files.
Session clean-up and signing key renewalAutomatic every night. Manually: Maintenance › Run maintenance now.
Logs for supportMaintenance › Collect logs (24 h). Also Event Viewer › Application, source OTCredRDGateway.
Connection files in use: three files, for Meera, Arjun and Ravi, with their computer, date and ID, and the Stop selected files, Select all and Refresh list buttons
Connection files › Connection files in use: when someone leaves or a laptop is lost, select their file and click Stop selected files….

10. Updates

The gateway updates itself, like OT Cred on the office computers. Every night at 03:30 it checks for a new version and installs it only when:

  • it is newer than the installed version;
  • it carries a valid signature from Orvix Technologies Private Limited and matches the published SHA-256;
  • no one is connected through the gateway (it waits up to two hours, otherwise it tries again the next night).

Installing an update restarts the gateway service once. Connection files, computers, settings and certificates stay as they are. On the Maintenance page you can Check for update, Install update now, or Turn automatic updates off.

RD Gateway Manager, Maintenance page: OT Cred RD Gateway is up to date, with the installed and latest version, automatic updates on, and a Check for update button
Maintenance shows the installed and the latest version, and whether automatic updates are on.

11. Troubleshooting

ProblemWhat to do
Remote Desktop says the gateway refused the connection, or it cannot sign you in to the gateway (for example error 0x3000008)On the gateway, open RD Gateway Manager and click Set up the gateway on the Start page once. This switches RD Gateway back to OT Cred if it was changed. Then check that the file was not stopped on Connection files.
"The certificate's name does not match" or "The identity of the remote computer cannot be verified"The office computer's Remote Desktop certificate does not cover the name in the connection file. See step 6.
"A revocation check could not be performed for the certificate"The PC people connect from has no internet, so it cannot check a public certificate. In Device Manager on the office computer, use Create certificate and install the .cer on that PC (step 6).
No QR tile in the remote sessionOn the office computer, check that sign-in through the RD Gateway is turned on and that the address is the one from the gateway's Start page.
"The remote computer requires Network Level Authentication, which your computer does not support"NLA is still on at the office computer, so sign-in through the gateway is not turned on there. Turn it on as in step 5. If Device Manager says Group Policy requires NLA, see NLA is turned off.
Remote Desktop asks for a user name and password before the office computer's screen appearsThe connection was not opened from a connection file made by the gateway (for example, it was typed into Remote Desktop by hand, or the file was edited). Open the connection file you received.
"Off. Your organisation's Group Policy requires NLA on this computer"Change the Group Policy for this computer as described under NLA is turned off, run gpupdate /force, then Turn on again.
"No inbound Remote Desktop firewall rule found; limit TCP 3389 to the gateway manually before turning NLA off"Remote Desktop's firewall rules were removed or replaced by another firewall. Turn Remote Desktop on in Windows Settings (this restores its rules) and try again, or limit TCP 3389 to the gateway in your own firewall first.
Direct Remote Desktop from the office network stopped workingExpected after Turn on: only the gateway and the recovery PC may connect. Use a connection file, or enter that PC as the recovery PC.
Certificate import says the revocation list could not be checkedThis is only a warning when the gateway server has no internet access. The certificate is imported.

Gateway logs are in C:\ProgramData\OTCred\RDGatewaySetup (manager.log, maintenance.log). Maintenance › Security audit checks the gateway's configuration without changing anything.

12. Roll back and uninstall

Every change takes a backup first. To go back: Maintenance › choose a backup › Roll back to selected backup. On each office computer, Turn off in Sign-in through the RD Gateway restores its earlier Remote Desktop settings, including NLA and the firewall rules.

Uninstalling OT Cred from an office computer does not turn NLA back on. Click Turn off first.

Uninstalling OT Cred RD Gateway (Settings › Apps) removes the manager files only. Roll back first if the server should keep working as a normal RD Gateway.

Need help? Write to cred.support@orvixtech.com.