Skip to content

Instantly share code, notes, and snippets.

@weipah
Last active June 19, 2017 13:44
Show Gist options
  • Save weipah/bcb1e41b95fafa997486a4702c469714 to your computer and use it in GitHub Desktop.
Save weipah/bcb1e41b95fafa997486a4702c469714 to your computer and use it in GitHub Desktop.
Enable https support for Windows IoT Device Portal Website
# 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
@weipah
Copy link
Author

weipah commented Jun 7, 2017

@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.

@MahmoudGSaleh
Copy link

The registry keys are wrong. Can you use the ones at https://developer.microsoft.com/en-us/windows/iot/docs/deviceportal?

@weipah
Copy link
Author

weipah commented Jun 19, 2017

@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