Last active
June 19, 2017 13:44
-
-
Save weipah/bcb1e41b95fafa997486a4702c469714 to your computer and use it in GitHub Desktop.
Enable https support for Windows IoT Device Portal Website
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
# Fix ownership | |
# Is it correct that it changes ownership only for subfolder "service"? | |
# Why "machine" and not "HKEY_LOCAL_MACHINE? | |
.\TakeRegistryOwnership.exe MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\webmanagement\service | |
# Add registry keys | |
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\webmanagement\service /v EncryptionMode /t REG_DWORD /d 0x3 /f | |
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\webmanagement\service /v HttpsPort /t REG_DWORD /d 4443 /f | |
# add corresponding firewall rules | |
netsh advfirewall firewall add rule name="Https4443" dir=in action=allow protocol=TCP localport=4443 | |
# Restart webmanagement | |
net stop webmanagement ; net start webmanagement |
The registry keys are wrong. Can you use the ones at https://developer.microsoft.com/en-us/windows/iot/docs/deviceportal?
@msalehmsft that worked, thanks for pointing to the correct keys.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hpsin we tried this as well, but no luck. It seems as if UseHttps has no effect.
We can change the default http port, though.
We are testing on the latest release build 15063, no insider preview.