Skip to content

Latest commit

 

History

History

seeding-an-aspnet-core-5-identity-database-with-users

Seeding an ASP.NET Core 5 Identity Database with Users

YouTube

Getting Started

  1. Generate a self-signed certificate.
    openssl req -x509 -newkey rsa:4096 -keyout localhost.key -out localhost.crt -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,DNS:identityserver"
    openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.pfx -name "Seeding an ASP.NET Core 5 Identity Database with Users"
  2. Import the self-signed certificate.
    certutil -f -user -importpfx Root localhost.pfx
  3. Add the line below to the hosts file.
    127.0.0.1 identityserver
    
  4. Start the services.
    docker compose up --build
  5. Open the diagnostics page.
  6. Enter the Username "[email protected]".
  7. Enter the Password "Pass123$".
  8. Click the Login button.