https://github.com/lldap/lldap logo
Curtain2021 - Today I used the example docker-c...
# troubleshooting
c
Today I used the example docker-compose.yaml. Worked well without LDAPS options. As soon as I activate the LDAPS options the container remains in "exited" status. I created .crt and .key with openssl. Used
Copy code
- LLDAP_LDAPS_OPTIONS__ENABLED=true
      - LLDAP_LDAPS_OPTIONS__CERT_FILE=/path/to/certfile.crt
      - LLDAP_LDAPS_OPTIONS__KEY_FILE=/path/to/keyfile.key
Appriciate a manual for that
a
message has been deleted
n
Did you check the container logs?
c
not yet
x
likely you want to mount the cert files into coontainer and change the CERT_FILE and ENV_FILE to it. Something like this
Copy code
volumes:
  - /cert/path/at/host:/path/in/container.crt
  - /key/path/at/host:/path/in/container.key

environment:
  - LDAP OPTION CERT_FILE=/path/in/container.crt
c
Container now healthy. Did the following: > volumes: > - "/home/user/ldap-certificates/ldapserver.crt:/certs/ldapserver.crt" > - "/home/user/ldap-certificates/ldapserver.key:/certs/ldapserver.key" > > environment: > - LLDAP_LDAPS_OPTIONS__ENABLED=true > - LLDAP_LDAPS_OPTIONS__CERT_FILE=/certs/ldapserver.crt > - LLDAP_LDAPS_OPTIONS__KEY_FILE=/certs/ldapserver.key
b
Haven't used LDAPS myself, but - have you checked `docker container log`; and also, you have mounted the crt/key files into the container, right? nvm, that was discord not showing me the replies in the thread preview