Trying to add HTTPS on quay.io/keycloak/keycloak:19.0.1 start-dev on windows 10

I’m using docker on windows 10.

docker run -p 8080:8080 -p 8443:8443 -e KC_DB=mysql -e JDBC_PARAMS=“useSSL=false” -e KC_DB_URL=jdbc:mysql://host.docker.internal:3306/keycloak -e KC_DB_USERNAME=keycloak -e KC_DB_PASSWORD=keycloak
-e KC_HTTP_ENABLED=true
-v “$PWD/keycloak.cer:/etc/x509/https/tls.crt”
-v “$PWD/keycloak.pkey:/etc/x509/https/tls.key”
–name=keycloak Quay start-dev

Why this command creates 2 folders instead of using existing files ?
“keycloak.cer;C”
“keycloak.pkey;C”

image

Is that rights issue ? If yes how to fix it on windows ? (it’s not easy like linux chmod)

The problem ist what $PWD returns on windows: It contains a colon (:)

C:...., so you probably need additional quoting.

try (untested):
-v "\"$PWD/keycloak.cer\":/etc/...."

Thanks for your answere but it still doesn’t work
I also tried full path like /d/pathtoddir/keycloak.cer
and exact same result it creates the folder ‘keycloak.cer;C’
I’ve also tried to give full rights to everything on those file but still doesn’t work

In order to stop loosing time configuring something in developpement mode i’ve put my keycloak docker behind an https reverse proxy and it works