liveBook · Manning

Certificate store

As explained in ASP.NET Core in Action, 3e

A certificate store is an operating-system or application repository that holds digital certificates and associated trust information.

A certificate store is an operating-system or application repository for digital certificates and trust information. Registering a development certificate there lets browsers recognize local HTTPS connections as trusted instead of showing security warnings. section 28.2 section 28.3

Certificate-store behavior varies with the platform and application:

  • Windows and macOS can register the ASP.NET Core development certificate in the operating system store. section 28.2
  • Linux software may use separate certificate stores, requiring direct configuration in a browser or application. section 28.2
  • Kestrel can load a production HTTPS certificate from the OS store instead of a .pfx file. section 28.3

Trust a local development certificate

Run `dotnet dev-certs https --trust` to register the ASP.NET Core development certificate in the operating-system certificate store. Restarting the browser may be necessary before cached warnings disappear. section 28.2

Figure 28.4 The developer certificate is not trusted by default, so apps serving HTTPS traffic using it will be marked as insecure by browsers. Although you can bypass the warnings if necessary, you should instead update the certificate to be trusted.
CH28_F04_Lock3

Use the illustration to distinguish an untrusted development certificate from a trusted HTTPS connection. section 28.2

How ASP.NET Core in Action, 3e covers it

How deep it goes
Explains trust registration and platform differences, then identifies OS-store loading without detailing certificate-store internals.
Examples
Uses the dotnet dev-certs command, browser security warnings, Linux application stores, and Kestrel production certificates.
What you can do after
Operate/configure HTTPS trust by registering development certificates and selecting an OS-store certificate for Kestrel.
How it connects
Connects certificate stores with HTTPS, TLS certificates, browser trust, Kestrel, and certificate authorities.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.