{"id":340,"date":"2019-10-01T19:59:24","date_gmt":"2019-10-01T17:59:24","guid":{"rendered":"https:\/\/blog.gerst-it.com\/?p=340"},"modified":"2019-10-01T21:30:59","modified_gmt":"2019-10-01T19:30:59","slug":"install-custom-rdp-certificate","status":"publish","type":"post","link":"https:\/\/blog.gerst-it.com\/?p=340","title":{"rendered":"Install custom rdp certificate"},"content":{"rendered":"\n<br><b>1.<\/b> Open cmd as Administrator Install pfx certificate to LocalMachine Personal\n<code>\ncertutil.exe -importPFX \"C:\\Users\\Administrator\\Desktop\\gerst.pfx\" noExport\n<\/code>\n<b>2.<\/b> Open mmc and add Snapin certificate local computer\n<br><b>3.<\/b> On certificate -&gt; right click Properties -&gt; All Tasks -&gt; Manage Private Keys\n<br><b>4.<\/b> Add NetworkService with ReadOnly\n<br><b>5.<\/b> Open powershell as Administrator and add rdp ssl thumbprint\n<code>\n$tp = (ls Cert:\\LocalMachine\\my | WHERE {$_.Subject -match \"gerst-it\" } | Select -First 1).Thumbprint\nWrite-Output \"Thumbprint: $tp\"\n&amp; wmic \/namespace:\\\\root\\CIMV2\\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash=\"$tp\"\n<\/code>\n","protected":false},"excerpt":{"rendered":"<p>1. Open cmd as Administrator Install pfx certificate to LocalMachine Personal certutil.exe -importPFX &#8222;C:\\Users\\Administrator\\Desktop\\gerst.pfx&#8220; noExport 2. Open mmc and add Snapin certificate local computer 3. On certificate -&gt; right click Properties -&gt; All Tasks -&gt; Manage Private Keys 4. Add NetworkService with ReadOnly 5. Open powershell as Administrator and add rdp ssl thumbprint $tp = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,13],"tags":[],"class_list":["post-340","post","type-post","status-publish","format-standard","hentry","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=340"}],"version-history":[{"count":5,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=\/wp\/v2\/posts\/340\/revisions\/345"}],"wp:attachment":[{"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gerst-it.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}