Open bugabinga opened 7 years ago
Hi
root@labor:~/ejabberd-compose# tree
.
├── cron
│ └── renew_ssl.sh
├── docker-compose.yml
└── ssl
├── host.pem -> /root/ejabberd-compose/ssl/labor.bugabinga.net.pem
└── labor.bugabinga.net.pem
Your 'host.pem ' is a symlink only available on the host not inside the container
I hope this help
FYI. Google Summer of Code with ejabberd projects, one of them is support for “let’s encrypt” ACME protocol.
I think you'll need at least ejabberd 17.12
or even 18.01
for 'native' Let's Encrypt support:
https://github.com/processone/ejabberd/pull/1959
https://github.com/processone/ejabberd/blob/master/ejabberd.yml.example#L684
ejabberd docker image runs with non root user (with ejabberd user) so you have to chown (or chmod to others) your cert files.
Hi, I could use some help in integrating Letsencrypt with ejabberd. When we get this done, I'd be happy to expand the Readme with this topic.
Here is how far I have come:
Basic setup with docker compose
I decided to to use docker-compose and put all the files into a folder
ejabberd-compose
:The idea was to provide ejabberd with the SSL certs ready for consumption, so that the volume can stay read-only.
Basic letsencrypt setup
Initial setup for domain
labor.bugabinga.net
Crontab script for renewal:
The goal of this script is to renew the letsencrypt cert and concatenate the private key and the certificate into one
.pem
file as stated in the Readme.Running the container
Here I get stuck:
Why does it try to overwrite the exisiting
host.pem
? Is it malformed?