Skip to content

Instantly share code, notes, and snippets.

@DamienBraillard
Last active January 14, 2020 08:32
Show Gist options
  • Save DamienBraillard/37765481903cfe105ef553a5ac83059c to your computer and use it in GitHub Desktop.
Save DamienBraillard/37765481903cfe105ef553a5ac83059c to your computer and use it in GitHub Desktop.
Some tips for ASP.Net core development

Asp .Net core tips and tricks

SSL and security

Linking a development certificate with a HTTPSYS web site

On windows:

  1. From start menu, open "Manage computer certificates"
  2. In "Personal/Certificates", locate the "localhost" certificate and open it
  3. Copy it's Thumbprint and keep it for later (beware, there are hidden characters at the beginning and/or the end)
  4. In your csproj file, locate the "PackageTags" tag. Copy it's value and keep it for later.
  5. Open a command promt and type in the following command
    netsh http add sslcert ipport=127.0.0.1:<your-port-num> certhash=<localhost-certificate-hash> appid={<package-tags-of-csproj>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment