GithubHelp home page GithubHelp logo

dcoles / acme-linode-objectstorage Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 6.0 24 KB

ACME ("Let's Encrypt") client for Linode Object Storage

License: MIT License

Python 100.00%
linode object-storage acme-client lets-encrypt

acme-linode-objectstorage's Introduction

ACME ("Let's Encrypt") client for Linode Object Storage

Automatically provision a Linode Object Storage bucket with a Let's Encrypt certificate.

Requirements

Requires Python 3.8+ with Cryptography and Requests.

pip install cryptography requests

Installing

The easiest way to install is using pip:

pip install --user git+https://github.com/dcoles/acme-linode-objectstorage.git

Alternatively clone this repository and run python3 setup.py install --user.

Usage

This assumes you have already created an Object Storage Bucket for a domain (e.g. my.bucket.domain) and configured a DNS to point to the bucket.

The bucket name and DNS name must be identical.

  1. Generate Let's Encrypt account key:

    openssl genrsa 4096 > account_key.pem
  2. Create a Linode API Personal Access Token with Read/Write permission to Object Storage.

  3. Provision a certificate for this bucket:

    export LINODE_TOKEN=...
    python3 -m acme_linode_objectstorage -k account_key.pem my.bucket.domain

    The Object Storage cluster can be specified with the --cluster flag (default: us-east-1).

    If this is the first time running the script, you will also need to include the --agree-to-terms-of-service flag to indicate agreement with the Let's Encrypt Terms of Service.

Certificates are typically valid for 90-days. This script should be re-run approximately 30-days prior to certificate expiration.

License

Licenced under the MIT License. See LICENSE for details.

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.