Reputation: 5192
Create the cert using Powershell
New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "localhost" -FriendlyName "localhost" -NotAfter (Get-Date).AddYears(10)
Launch "Manage computer certificates" (certmgr. msc)
Navigate to Certificates - Local Computer > Personal > Certificates to find your newly created certificate.
Works fine with Curl. And get a response "Hello World"
curl https://localhost:5061/Hello
Goto EDGE And browse https://localhost:5061/Hello, gets ERR_UNSAFE_PORT
I am calling from my own test site (Not secure yet. http://localhost:5062/Index.html), needs to call a WebAPI using Ajax within the same computer https://localhost:5061/something to communicate to a hardware device
Upvotes: 0
Views: 51