s k
s k

Reputation: 5192

Self signed certificate for Minimal API accepted by Curl but rejected by EDGE

  1. Create the cert using Powershell

    New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "localhost" -FriendlyName "localhost" -NotAfter (Get-Date).AddYears(10)

  2. Launch "Manage computer certificates" (certmgr. msc)

  3. Navigate to Certificates - Local Computer > Personal > Certificates to find your newly created certificate.

  4. Works fine with Curl. And get a response "Hello World"

    curl https://localhost:5061/Hello

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

Answers (0)

Related Questions