Unable to load HTTPS TLS Certificate

I am getting message:unable to load X509 key pair from files: open /etc/tls/fullchain.pem: no such file or directory when I try to run my docker-compose up.

I have tried copying the files to the directory from which I am launching hydra and set:

volumes:
      - ./config/hydra-config.yaml:/configuration/hydra-config.yaml
      - ./resources/tls:/etc/tls

Environment vars in docker compose:

environment:
      - SERVE_TLS_CERT_PATH=/etc/tls/fullchain.pem
      - SERVE_TLS_KEY_PATH=/etc/tls/privkey.pem

Make sure that the files exist and that you have permissions to read them.

1 Like