[GH-ISSUE #856] Support for let's encrypt #762

Closed
opened 2026-02-27 11:13:25 +03:00 by kerem · 6 comments
Owner

Originally created by @baptcottey on GitHub (Apr 2, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/856

Hello,

It's prossible to add a support for let's encrypt ?

Originally created by @baptcottey on GitHub (Apr 2, 2016). Original GitHub issue: https://github.com/modoboa/modoboa/issues/856 Hello, It's prossible to add a support for let's encrypt ?
kerem closed this issue 2026-02-27 11:13:25 +03:00
Author
Owner

@hadifarnoud commented on GitHub (Apr 9, 2016):

native support would be awesome. Mailinabox did something in that effect. can we re-use some of that code?

<!-- gh-comment-id:207797258 --> @hadifarnoud commented on GitHub (Apr 9, 2016): native support would be awesome. Mailinabox did something in that effect. can we re-use some of that code?
Author
Owner

@tonioo commented on GitHub (Apr 11, 2016):

Maybe. Once again, don't hesitate to contribute.

<!-- gh-comment-id:208488302 --> @tonioo commented on GitHub (Apr 11, 2016): Maybe. Once again, don't hesitate to contribute.
Author
Owner

@spinza commented on GitHub (May 9, 2016):

I'm running with letsencrypt certificates. Not that difficult to setup.

<!-- gh-comment-id:218020986 --> @spinza commented on GitHub (May 9, 2016): I'm running with letsencrypt certificates. Not that difficult to setup.
Author
Owner

@tonioo commented on GitHub (May 10, 2016):

That's something the installer could do pretty easily.

<!-- gh-comment-id:218079411 --> @tonioo commented on GitHub (May 10, 2016): That's something the installer could do pretty easily.
Author
Owner

@almereyda commented on GitHub (May 10, 2016):

Before installing, I have been using the following procedure to generate certificates.


Create a letsencrypt certificate with https://github.com/lukas2511/letsencrypt.sh and Python SimpleHTTPServer, assuming you work as root.

  1. Clone into /root/letsencrypt.sh: git clone https://github.com/lukas2511/letsencrypt.sh
    Create the following files within that folder:

    • domains.txt
    FQDN of your box
    
    • config.sh
    WELLKNOWN="/root/webroot/.well-known/acme-challenge"
    CONTACT_EMAIL="hostmaster@FQDN"
    
  2. Create your HTTP webroot mkdir -p /root/webroot/.well-known/acme-challenge

    • Run an HTTP server from there cd /root/webroot && python -m SimpleHTTPServer 80
  3. Run ./letsencrypt.sh -e to verify your settings and ./letsencrypt.sh -c to (re-)generate the certificate(s).


Then the installer.cfg from Modoboa's installer would receive the following lines:

[general]
tls_key_file = /root/letsencrypt.sh/certs/FQDN/privkey.pem
tls_cert_file = /root/letsencrypt.sh/certs/FQDN/fullchain.pem
<!-- gh-comment-id:218201250 --> @almereyda commented on GitHub (May 10, 2016): Before installing, I have been using the following procedure to generate certificates. --- Create a letsencrypt certificate with https://github.com/lukas2511/letsencrypt.sh and Python SimpleHTTPServer, assuming you work as `root`. 1. Clone into `/root/letsencrypt.sh`: `git clone https://github.com/lukas2511/letsencrypt.sh` Create the following files within that folder: - `domains.txt` ``` FQDN of your box ``` - `config.sh` ``` WELLKNOWN="/root/webroot/.well-known/acme-challenge" CONTACT_EMAIL="hostmaster@FQDN" ``` 2. Create your HTTP webroot `mkdir -p /root/webroot/.well-known/acme-challenge` - Run an HTTP server from there `cd /root/webroot && python -m SimpleHTTPServer 80` 3. Run `./letsencrypt.sh -e` to verify your settings and `./letsencrypt.sh -c` to (re-)generate the certificate(s). --- Then the `installer.cfg` from Modoboa's installer would receive the following lines: ``` [general] tls_key_file = /root/letsencrypt.sh/certs/FQDN/privkey.pem tls_cert_file = /root/letsencrypt.sh/certs/FQDN/fullchain.pem ```
Author
Owner

@tonioo commented on GitHub (Jun 6, 2016):

This issue was moved to modoboa/modoboa-installer#50

<!-- gh-comment-id:223973053 --> @tonioo commented on GitHub (Jun 6, 2016): This issue was moved to modoboa/modoboa-installer#50
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#762
No description provided.