Skip to content

Small fixes for extracting certs from the acme.json file#1703

Merged
georglauterbach merged 3 commits intodocker-mailserver:masterfrom
BrandonSchmitt:acme-fixes
Dec 11, 2020
Merged

Small fixes for extracting certs from the acme.json file#1703
georglauterbach merged 3 commits intodocker-mailserver:masterfrom
BrandonSchmitt:acme-fixes

Conversation

@BrandonSchmitt
Copy link
Copy Markdown
Contributor

As I wanted to setup TLS with certificates provided by traefik I ran into two small bugs:

The first was a python exception. I have an acme.json containing sections which look like:

  "httpChallenge": {
    "Account": null,
    "Certificates": null
  }

The script didn't test if Certificates was null.

The second problem was that the environment variable SSL_DOMAIN was only used while watching for changes in the acme.json, not during start-up.

Both bugs are fixed with this PR.

…f there are sections with null values as certs

Signed-off-by: Brandon Schmitt <[email protected]>
…me.json during start-up

Signed-off-by: Brandon Schmitt <[email protected]>
@georglauterbach georglauterbach added this to the 7.3-stable milestone Dec 8, 2020
@georglauterbach georglauterbach self-requested a review December 8, 2020 20:47
@georglauterbach
Copy link
Copy Markdown
Member

Thank you for providing these fixes @BrandonSchmitt. I will happily merge this as soon as possible, but before I approve of these changes, I would like to take a look at the [[ ... ]] && ... || ... construct that was introduced. I left a comment in my review:)

Comment thread target/start-mailserver.sh Outdated
@georglauterbach
Copy link
Copy Markdown
Member

EDIT: Sorry for the inconvenience, forgot to press the submit button for the review (here too).

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

Successfully merging this pull request may close these issues.

2 participants