Skip to content

Instantly share code, notes, and snippets.

@yangyang5214
Created June 25, 2023 11:22
Show Gist options
  • Save yangyang5214/aee508da8c547f3b5c074e7ec79c2553 to your computer and use it in GitHub Desktop.
Save yangyang5214/aee508da8c547f3b5c074e7ec79c2553 to your computer and use it in GitHub Desktop.
windows rdp 服务自定义证书

rdp 服务自定义证书

生成 out.pfx 证书文件

openssl pkcs12 -export -out out.pfx -inkey nginx-selfsigned.key -in nginx-selfsigned.crt

双击 安装

image

获取证书 hash

certlm.msc

加载

# xxxxxxxxxxxx 为 hash
wmic /namespace:\\root\cimv2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash=xxxxxxxxxxxx

win + R , services.msc 重启 rdp service.

Reference

https://blog.berd.moe/archives/remote-desktop-setup-ssl-certificate/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment