- 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:api,DNS:identityserver,DNS:webapplication"
openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.pfx -name "Authenticating an ASP.NET Core 5 Web Application using IdentityServer 5"
- Import the self-signed certificate.
certutil -f -user -importpfx Root localhost.pfx
- Add the lines below to the hosts file.
127.0.0.1 api 127.0.0.1 identityserver 127.0.0.1 webapplication
- Start the applications.
docker compose up --build
- Open the API page.
- Enter the Username "[email protected]".
- Enter the Password "Pass123$".
- Click the Login button.
authenticating-an-aspnet-core-5-web-application-using-identityserver-5
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||