o-fl0w / stash-vr

Watch your stash library in VR.
49 stars 8 forks source link

Problem with self signed certificate #29

Open Sascha353 opened 10 months ago

Sascha353 commented 10 months ago

If your stash instance is set up with an self singed SSL certificate you cant connect to it. In the logs you'll see this error:

tls: failed to verify certificate: x509: certificate signed by unknown authority

The following workaround solves it for me but you have to re-do it every time the container is updated:

  1. Copy the root ca.cert into the container: /usr/local/share/ca-certificates/ca.crt
  2. apk add ca-certificates
  3. update-ca-certificates
  4. reboot container

The best would be to have a config flag to set the cert properly or to ignore this error/skip the validation at all.