rapid-animal-63342
04/09/2024, 7:47 PMSSL Error: Self signed certificate
. So two questions:
• Why I can't specify my own certificate and hydra ignores it.. ? I checked in the docker container and these files are successfully mounted
• How can I overcome the issue with self signed certificate and be able to make a request against the HTTPS endpoint (Either with postman or my HTTP client) ?
This is my docker compose config:
hydra-migrate:
image: oryd/hydra:v1.0.0
links:
- postgresd:postgresd
environment:
- DATABASE_URL=<postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable>
- DSN=<postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable>
command:
migrate sql -e --yes
restart: on-failure
networks:
- kafka-local
hydra:
image: oryd/hydra:v1.0.0
links:
- postgresd:postgresd
depends_on:
- hydra-migrate
ports:
# Public port
- "4444:4444"
# Admin port
- "4445:4445"
command: "serve all"
environment:
- DSN=<postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable>
- TLS_KEY_PATH=/etc/kafka/key.pem
- TLS_CERT_PATH=/etc/kafka/cert.crt
volumes:
- ./tls/cert.crt:/etc/kafka/cert.crt
- ./tls/key.pem:/etc/kafka/key.pem
restart: unless-stopped
networks:
- kafka-local
postgresd:
image: postgres:9.6-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_USER=hydra
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=hydra
networks:
- kafka-local
networks:
kafka-local:
rapid-animal-63342
04/10/2024, 6:06 AM