SSL Problem - LetsEncrypt


when running Provision certificates from WebUi i got “Something went wrong…”.
Running this on command line i got:

root@box:/home/config/mailinabox# management/
Provisioning TLS certificates for,,,,,,,,,,,,
Traceback (most recent call last):
  File "management/", line 660, in <module>
  File "management/", line 372, in provision_certificates_cmdline
    status = provision_certificates(env, limit_domains=domains)
  File "management/", line 348, in provision_certificates
  File "management/", line 458, in post_install_func
    if cert and os.readlink(system_ssl_certificate) != cert['certificate']:
OSError: [Errno 22] Invalid argument: '/home/user-data/ssl/ssl_certificate.pem'

Does this can have anything to do with migrating my MIAB installation? I remember that there was a problem copying the file /home/user-data/ssl/ssl_certificate.pem. But this is only a shortcut, isn’t it? How can I solve the problem?

I’m getting all those errors too today. First time in >4 years I have an error. They certs expired last night and didn’t renew and then I go to manually upgrade (tho it is the current version) and it spits out all above.

Can anyone help please?

I deleted /home/user-data/ssl/ssl_certificate.pem and tried to run “sudo mailinabox”.
Now i get this when running “sudo management/”

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Missing command line flag or config entry for this setting:
Please choose an account
Choices: [' (5666)', ' (7710)']

okay i deleted the old account from “/home/user-data/ssl/lets_encrypt/accounts/” and rerun “sudo management/”

Now everything is working but i still have on error on status page:

The DANE TLSA record for incoming mail ( is not correct. It is ‘3 1 1 16f0d26a24658dfb3c767e3a17749e83’ but it should be ‘3 1 1 61f76074598ba151f’. It may take several hours for public DNS to update after a change.

I think this will be solved automatically through DNS update?

Edit: Everything working now

I have the same problem since yesterday.

Also my “/home/user-data/ssl/lets_encrypt/accounts/” is empty so nothing to delete in there.

Edit: I rerun sudo mailinabox as mentioned in other thread, hope it fixes the problem.

Same problem.

my /home/user-data/ssl/lets_encrypt/accounts/ is empty and my log has the following from my latest attempt to run ./
Pastebin Link to relevent log

It mentions webroot alot but this is the first time I have ever had an issue like thsi crop up in the last 2 yearswith mailinabox

Did it solve the problem? An update please! :slight_smile:
Which version of MiaB are you using?

Is there anything in /home/user-data/ssl/
If so remove the contents of the directory (BUT NOT THE DIRECTORY ITSELF)
then do sudo mailinabox

Please reply if that works, or if not, copy the error log.
Which version of MiaB are you using?

Looks like it didn’t because I got same error this night. I have v.28. will update to v.29 tomorrow.

All the contents to include the lets_encrypt and lets_encrypt-old folders?

Yes that worked All is well now!

Worked for me too, thanks!