GithubHelp home page GithubHelp logo

ixc-acme.sh's Introduction

ixc-acme.sh

Improvements to acme.sh:

  • Add the ability to exec commands on other Docker services (e.g. reload HAproxy) after renewing certificates.

  • Add a web server on port 80 to handle HTTP-01 challenges, and redirect HTTP requests to HTTPS.

Installation

Deploy the included docker-compose.yml file to your Docker swarm.

Usage

Certificates are initially issued via one-time exec commands on the acme service. Then they are deployed via another one-time exec command. They are renewed automatically.

For domains that cannot use DNS-01 challenge:

--issue -d 'example.com' -d 'foo.example.com' -w /www

For domains hosted with DNS Made Easy:

--issue -d 'example.com' -d '*.example.com' --dns dns_me --dnssleep 15

For domains hosted elsewhere, with an _acme-challenge CNAME pointing at _acme-challenge.ixchosted.com:

--issue -d 'example.com' -d '*.example.com' --challenge-alias ixchosted.com --dns dns_me --dnssleep 15

For domains hosted elsewhere, with an _acme-challenge CNAME pointing at FOO.ixchosted.com (e.g. because they don't allow hostnames with a leading underscore):

--issue -d 'example.com' -d '*.example.com' --domain-alias FOO.ixchosted.com --dns dns_me --dnssleep 15

To deploy and restart HAproxy:

--deploy -d 'example.com' --deploy-hook haproxy

NOTE: All of the above commands should be executed via Portainer's Use custom command option, or via docker exec. If you want to execute these commands from an interactive shell, prefix them with acme.sh.

Assumptions

ixc-acme.sh's People

Contributors

mrmachine avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.