Giter Site home page Giter Site logo

certbot's Introduction

Certbot

To create/renew

  1. Stop the cluster:
$ cd $HOME
$ docker-compose down
  1. Change to the certbot directory:
$ cd certbot
  1. Dry run (the default):
$ ./create_cert.sh \
    -d benjamintoll.com \
    -d benjamintoll.io \
    -d theowlsnest.farm \
    -d theowlsnestfarm.com \
    -d www.benjamintoll.com \
    -d www.benjamintoll.io \
    -d italy.benjamintoll.com \
    -d www.theowlsnest.farm \
    -d www.theowlsnestfarm.com \
    -e [email protected]
-------------------------------
DOMAINS: benjamintoll.com benjamintoll.io theowlsnest.farm theowlsnestfarm.com www.benjamintoll.com www.benjamintoll.io italy.benjamintoll.com www.theowlsnest.farm www.theowlsnestfarm.com
EMAIL:   [email protected]
DRYRUN:  true
-------------------------------
Creating network "certbot_default" with the default driver
Creating letsencrypt-nginx ... done
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Account registered.
Requesting a certificate for benjamintoll.com and 8 more domains

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/benjamintoll.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/benjamintoll.com/privkey.pem
This certificate expires on 2022-04-11.
These files will be updated when the certificate renews.

NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: benjamintoll.com
    Serial Number: fa75405f69685b5bb590d756202cecb6866e
    Key Type: RSA
    Domains: benjamintoll.com benjamintoll.io italy.benjamintoll.com theowlsnest.farm theowlsnestfarm.com www.benjamintoll.com www.benjamintoll.io www.theowlsnest.farm www.theowlsnestfarm.com
    Expiry Date: 2022-04-11 00:23:15+00:00 (INVALID: TEST_CERT)
    Certificate Path: /etc/letsencrypt/live/benjamintoll.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/benjamintoll.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  1. For real (add the -p flag):
$ ./create_cert.sh \
    -d benjamintoll.com \
    -d benjamintoll.io \
    -d theowlsnest.farm \
    -d theowlsnestfarm.com \
    -d www.benjamintoll.com \
    -d www.benjamintoll.io \
    -d italy.benjamintoll.com \
    -d www.theowlsnest.farm \
    -d www.theowlsnestfarm.com \
    -e [email protected] \
    -p
  1. Re-start the cluster:
$ cd -
$ docker-compose up -d

To get information on your certificate:

$ cat letsencrypt/etc/letsencrypt/renewal/benjamintoll.com.conf

The create_cert.sh shell script will create the following directory structure:

letsencrypt/
├── etc
└── var
    ├── lib
    └── log

After the first container runs, the locally mounted volumes that were just created will have been filled with goodies from the certbot tool, including the certs. The directory structure should then look very similar to this:

letsencrypt/
├── etc
│   └── letsencrypt
│       ├── accounts
│       │   └── acme-v02.api.letsencrypt.org
│       ├── archive
│       │   └── benjamintoll.com
│       ├── csr
│       ├── keys
│       ├── live
│       │   └── benjamintoll.com
│       ├── renewal
│       └── renewal-hooks
│           ├── deploy
│           ├── post
│           └── pre
└── var
    ├── lib
    │   └── letsencrypt
    └── log
        └── letsencrypt

References

certbot's People

Contributors

btoll avatar

Stargazers

 avatar

Watchers

 avatar  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.