Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using already existing ssl certificates #284

Open
panomitrius opened this issue Dec 12, 2020 · 3 comments
Open

Using already existing ssl certificates #284

panomitrius opened this issue Dec 12, 2020 · 3 comments

Comments

@panomitrius
Copy link

I'm wondering how I should configure my already existing ssl certificates in docker-compose.yml? It says to use the argument "CUSTOM_CA_CERTIFICATES" but with what parameters should I use that?

@panomitrius
Copy link
Author

panomitrius commented Dec 13, 2020

I found a sollution by commenting the SSL_CERTIFICATE_GENERATION option and linking my current ssl certicates by adding them as volumes:
volumes:
#...after the other volume settings
- '/etc/letsencrypt/live/privkey.pem:/data/certs/zulip.key:ro'
- '/etc/letsencrypt/live/fullchain.pem:/data/certs/zulip.combined-chain.crt:ro'

@misaflo
Copy link
Contributor

misaflo commented Feb 21, 2022

Hello,

Putting the certificates here works:

  • /opt/docker/zulip/zulip/certs/zulip.key
  • /opt/docker/zulip/zulip/certs/zulip.combined-chain.crt

@shanzez
Copy link

shanzez commented Apr 3, 2024

Which is the proper location? I don't see it mentioned in the documentation. Commenting out (or just not including) SSL_CERTIFICATE_GENERATION in the docker-compose.yml is not intuitive (to me at least). Especially, when I see in entrypoint that when you don't define it, it is just set to "self-signed".

I suppose I should set SSL_CERTIFICATE_GENERATION to anything except "self-signed" and "certbot". I'll go with "false".

docker-zulip/entrypoint.sh

Lines 162 to 165 in cd7692a

*)
echo "Not requesting auto-generated self-signed certs."
GENERATE_CERTBOT_CERT="False"
GENERATE_SELF_SIGNED_CERT="False"

I don't know about putting the certs in /opt/docker/zulip/zulip/certs. I don't see that in the documentation. I'll jump into the docker container once it exists and see if I can tell what the directory is doing.

I think perhaps the right place is:

      - "./zulip.key:/data/certs/zulip.key:ro"
      - "./zulip.combined-chain.crt:/data/certs/zulip.combined-chain.crt:ro"

with SSL_CERTIFICATE_GENERATION set to 'False'.

Update:
This worked for me on version 8.2-0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants