- 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 "Implementing Multitenancy in Entity Framework Core 6 using a Database Per-Tenant"
- 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
implementing-multitenancy-in-entity-framework-core-6-using-a-database-per-tenant
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||