Last active
September 23, 2020 04:41
-
-
Save danackerson/adbf5e473afcc755a056af255b414508 to your computer and use it in GitHub Desktop.
Create PFX file for importing into Windows and use for Remote Desktop access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On ubuntu@pi: | |
cd traefik | |
./traefik-certs-dumper file --version v2 | |
cat dump/private/\*.ackerson.de.key > ackerson.pem | |
cat dump/certs/\*.ackerson.de.crt >> ackerson.pem | |
openssl pkcs12 -export -out ackerson.pfx -in ackerson.pem | |
# On Windows10 in an Administrator Powershell Terminal: | |
scp ubuntu@pi:~/traefik/ackerson.pfx . | |
certutil -p xyz123 -importPFX ackerson.pfx noExport | |
$tp = (ls Cert:\LocalMachine\my | WHERE {$_.Subject -match "ackerson.de" } | Select -First 1).Thumbprint & wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash="$tp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment