Reference project https://damienbod.com/2019/06/27/using-chained-certificates-for-certificate-authentication-in-asp-net-core-3-0/
With administrator right in a powershell console, execute certificates\generate.ps1
run the web appfirst ans the consoleapp after.