Mailcow-dockerized: ACME with DNS challenge

Created on 14 Apr 2018  路  2Comments  路  Source: mailcow/mailcow-dockerized

Hi,
is there an easy way to configure ACME to prefer DNS challenges?

Most helpful comment

i use let's encypt wildcard certificates and also use acme.sh
Inside the acme.sh contienr the croncob will renew the certificat automatically, and copy the cert to ..../mailcow-dockerized/data/assets/ssl/.
However, I still have to restart Mailcow manually when the certificate file has been renewed.

docker-compose.yml

version: '3.0'
services:

   acme.sh:
      container_name: acme.sh
      image: neilpang/acme.sh:latest
      command: daemon
      restart: always
      volumes:
        - ./data/acme.sh/:/acme.sh/:rw
        - /PATH-TO-MAILCOW/mailcow-dockerized/data/assets/ssl/:/cert_mailcow/:rw

create cert

docker  exec acme.sh --issue        --dns xxDNS_PLUGINxx --debug -d example.com -d *.example.com

docker  exec acme.sh --install-cert -d example.com --key-file  /cert_mailcow/key.pem  --fullchain-file /cert_mailcow/cert.pem 

All 2 comments

Not with the current setup.
To be honest it seems the acme-client isn't in development at the moment, I would switch to acme.sh
The next 'problem' is to display users that they have to add the TXT records to their DNS or they can use a predefinied script to do it automatically, but not all DNS providers are covered by this -> Layer 8 problems occurs - so I would still use HTTP resources for validation for a project like this

i use let's encypt wildcard certificates and also use acme.sh
Inside the acme.sh contienr the croncob will renew the certificat automatically, and copy the cert to ..../mailcow-dockerized/data/assets/ssl/.
However, I still have to restart Mailcow manually when the certificate file has been renewed.

docker-compose.yml

version: '3.0'
services:

   acme.sh:
      container_name: acme.sh
      image: neilpang/acme.sh:latest
      command: daemon
      restart: always
      volumes:
        - ./data/acme.sh/:/acme.sh/:rw
        - /PATH-TO-MAILCOW/mailcow-dockerized/data/assets/ssl/:/cert_mailcow/:rw

create cert

docker  exec acme.sh --issue        --dns xxDNS_PLUGINxx --debug -d example.com -d *.example.com

docker  exec acme.sh --install-cert -d example.com --key-file  /cert_mailcow/key.pem  --fullchain-file /cert_mailcow/cert.pem 
Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrick7 picture patrick7  路  3Comments

CrAazZyMaN21 picture CrAazZyMaN21  路  3Comments

starcraft0429 picture starcraft0429  路  3Comments

pgollor picture pgollor  路  3Comments

constin picture constin  路  3Comments