Skip to content

Utility that automates rdp certificate installing/updating on desktop versions of windows

Notifications You must be signed in to change notification settings

HumMan/RDPCertInstaller

Repository files navigation

RDPCertInstaller

English | Pусский

Platform Windows
Build status Build status

The utility automates the update of the RDP certificate on Windows 10 (it may work on other versions as well). Below is a description of how to configure RDP for a system behind a router, with a dynamic public IP, and a domain for access set up via no-ip.com in the format myhomehost.ddns.net.

Problem

Since several non-trivial actions are required to assign/update the certificate on desktop Windows, this program has been created.

How to Use

We will generate certificates using the service https://zerossl.com

  • If we are creating a new certificate, we leave the fields account-key.txt and domain-csr.txt empty. The files account-key.txt, domain-csr.txt, myprivate_domain.key will be generated, and in the next step, we need to save them.
    • The file myprivate_domain.key is used only locally to generate the pfx certificate.
  • If we are renewing the certificate, we insert the contents of the files obtained during the initial certificate creation into the corresponding fields
    • account-key.txt
    • domain-csr.txt
  • Next, we will be asked to confirm ownership of the domain.

  • Download the confirmation file.
  • Place it in WebServer\wwwroot\.well-known\acme-challenge\
  • In the file WebServer\Properties\launchSettings.json, specify the local IP of the system, for example, "applicationUrl": "http://192.168.1.41:5000/"
  • Run WebServer\run.bat
  • Go to the router settings and forward port 80 to 192.168.1.{your_ip}:5000
  • Check that the WebServer is running and the port is forwarded. To do this, open the link to the file at step 2 - Verification; it should display the content.
  • Click Next.
  • After successful confirmation, you will be prompted to download and save the file domain-crt.txt.

  • Turn off the WebServer and remove the port forwarding.
  • Run RDPCertInstaller.exe (administrator rights are required as the system registry is modified)
  • Specify the following files:
    • In the Key field - the file myprivate_domain.key
    • In the Cert field - the file domain-crt.txt
  • Click Install RDP cert.

  • If at the end it says Success, everything has been updated successfully.
  • Try to connect via RDP - there should be an icon for a secure connection at the top with our certificate.

Useful Links for Configuring/Creating RDP Certificate

https://support.microsoft.com/ru-ru/help/2001849/how-to-force-remote-desktop-services-on-windows-7-to-use-a-custom-serv
http://www.sherweb.com/blog/when-given-crt-and-key-files-make-a-pfx-file/

Useful Links for Configuring RDP

https://alexmdv.ru/zashhita-rdp-podklyucheniya
http://macrodmin.ru/2016/03/secure-rdp/

About

Utility that automates rdp certificate installing/updating on desktop versions of windows

Resources

Stars

Watchers

Forks

Packages

No packages published