- Generate a self-signed certificate.
openssl req -x509 -nodes -newkey rsa:4096 -keyout example.local.key -out example.local.crt -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,DNS:*.example.local"
openssl pkcs12 -export -in example.local.crt -inkey example.local.key -out example.local.pfx -name "Adding Multitenancy to an ASP.NET Core 6 Application"
- Import the self-signed certificate.
certutil -f -user -importpfx Root example.local.pfx
- Add the lines below to the hosts file.
127.0.0.1 one.example.local 127.0.0.1 two.example.local
- Start the services.
docker compose up --build
adding-multitenancy-to-an-aspnet-core-6-application
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||