Giter Site home page Giter Site logo

thde / truenas-scale-acme Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 63 KB

Optain and manage certificates for TrueNAS Scale

Home Page: https://github.com/thde/truenas-scale-acme

License: MIT License

Go 95.99% Ruby 4.01%
acme acme-client truenas truenas-scale certificates letsencrypt tls

truenas-scale-acme's Introduction

truenas-scale-acme

Go Report Card

truenas-scale-acme optains and manages certificates for TrueNAS Scale using the ACME DNS-01 challenge and the TrueNAS Scale API.

It uses Caddy's caddyserver/certmagic library internally to optain and renew SSL certificates and ensures that TrueNAS uses a valid certificate to serve requests.

Supported DNS-Providers

Currently the following providers are supported:

If you require a different provider, feel free to create an issue. In theory, all github.com/libdns providers can be supported.

Install

Homebrew

brew tap thde/truenas-scale-acme
brew install thde/truenas-scale-acme/truenas-scale-acme

curl

mkdir truenas-scale-acme
curl -L $(curl -s https://api.github.com/repos/thde/truenas-scale-acme/releases/latest |
    jq -r '.assets[].browser_download_url | select(contains ("linux_amd64"))') |
    tar xvz -C ./truenas-scale-acme

Getting Started

  1. Create an API key in TrueNAS
  2. Register an account on ACME-DNS server:
    curl -X POST https://auth.acme-dns.io/register
  3. Create a DNS CNAME record that points from _acme-challenge.your-domain.example.com to the fulldomain from the registration response.
  4. Use the credentials obtained in step 1 and 2 to configure truenas-scale-acme (default ~/.config/truenas-scale-acme/config.json):
    {
      "domain": "nas.domain.com",
      "scale": {
        "api_key": "s3cure",
        "url": "https://localhost/api/v2.0/",
        "skip_verify": true
      },
      "acme": {
        "email": "[email protected]",
        "tos_agreed": true,
        "acme-dns": {
          "username": "00000000-0000-0000-0000-000000000000",
          "password": "s3cure",
          "subdomain": "FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF",
          "server_url": "https://auth.acme-dns.io"
        }
      }
    }
  5. Run truenas-acme-scale and verify that the certificate is issued and updated successfully.
  6. Setup a cronjob that runs truenas-acme-scale daily as the correct user.

CA's

truenas-scale-acme currently has the following CA's configured by default:

  1. Let's Encrypt
  2. ZeroSSL

This ensures a valid certificate even if one CA is unavailable.

Other Solutions

truenas-scale-acme's People

Contributors

dependabot[bot] avatar goreleaserbot avatar thde 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.