Jawz84 / explainpowershell

PowerShell version of explainshell.com
https://www.explainpowershell.com/
MIT License
34 stars 1 forks source link

naked domain explainpowershell.com should also work / explainpowershell.com does not support https #40

Open Jawz84 opened 3 years ago

Jawz84 commented 3 years ago

When I navigate to explainpowershell.com, it should also just work.

Jawz84 commented 3 years ago

I have set this up, and it does work. Just without HTTPS support.

The reason is, I am using Azure CDN managed HTTPS on www.explainpowershell.com, but it seems this is no longer supported for apex domains (in my case explainpowershell.com).

See also: https://github.com/MicrosoftDocs/azure-docs/issues/63977

Next step would be to find out how to get a valid public SSL cert for explainpowershell.com in Azure KeyVault, and configure that cert as an SSL cert for the explainpowershell.com domain in Azure CDN.

Jawz84 commented 3 years ago

This looks promising: https://github.com/shibayan/keyvault-acmebot

Jawz84 commented 2 years ago

Illustration of what happens if I try to enable CDN managed cert on apex domain (not supported): image

Jawz84 commented 2 years ago

I've managed to work around this by putting a DNS CNAME in place, and adding a redirect from http -> https. Those combined, make sure people end up in the right place: https://www.explainpowershell.com

Jawz84 commented 2 years ago

hmm. everything works, except ofcourse when someone explicitly navigates to https://explainpowershell.com, because SSL check takes place before url redirect :( #sadpanda.