glance icon indicating copy to clipboard operation
glance copied to clipboard

Add self-signed SSL certificate globally

Open Marlstar opened this issue 7 months ago • 2 comments

Description

Hello! While the individual allow-insecure configuration options for various widgets do the job (#269 #288 #361 #347 #484), it would be amazing to be able to add certificates container-wide so that everything works out of the box on networks (corporate, school, etc) that have self-signed certificates. This could be implemented into the docker-compose directly, or through some configuration option.

Marlstar avatar May 06 '25 22:05 Marlstar

Hey, I believe you should be able to do this currently by mounting your certificate in the docker-compose.yml:

volumes:
  - ./certs/mycert.crt:/usr/local/share/ca-certificates/mycert.crt:ro

svilenmarkov avatar May 09 '25 09:05 svilenmarkov

volumes:

  • ./certs/mycert.crt:/usr/local/share/ca-certificates/mycert.crt:ro

Milanhe92 avatar May 10 '25 02:05 Milanhe92

Hey, I believe you should be able to do this currently by mounting your certificate in the docker-compose.yml:

volumes:
  - ./certs/mycert.crt:/usr/local/share/ca-certificates/mycert.crt:ro

This, and also adding SSL_CERT_FILE=/usr/local/share/ca-certificates/mycert.crt to container's environment variables.

EricKotato avatar May 16 '25 00:05 EricKotato

Hello! Sorry it's been so long. I've finally been able to test this and can confirm the combination of the volume mount and the environment variable do work. Thank you so much for the help!

Marlstar avatar May 26 '25 23:05 Marlstar