Navigate the folder /Users/<username>/.aspnet
and execute sudo chown -R $(id -u):$(id -g) ./
This folder contains the dev-certs
folder contains that has the certificates. Once the local user has access to this folder, the application can be hosted on https.