Generate a local certificate for Kestrel https

Fixes #10981
This commit is contained in:
Jacob Overgaard
2021-08-30 12:44:42 +02:00
committed by Sebastiaan Janssen
parent a73c7bb8a1
commit a2b9146abf

View File

@@ -42,4 +42,8 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# Needing to set unsafe-perm as root is the user setup
# https://docs.npmjs.com/cli/v6/using-npm/config#unsafe-perm
# Default: false if running as root, true otherwise (we are ROOT)
RUN npm -g config set user vscode && npm -g config set unsafe-perm
RUN npm -g config set user vscode && npm -g config set unsafe-perm
# Generate and trust a local developer certificate for Kestrel
# This is needed for Kestrel to bind on https
RUN dotnet dev-certs https --trust