Giter Club home page Giter Club logo

deploy-freenas's Introduction

deploy-freenas

deploy-freenas.py is a Python script to deploy TLS certificates to a FreeNAS server using the FreeNAS API. This should ensure that the certificate data is properly stored in the configuration database, and that all appropriate services use this certificate. It's intended to be called from a Let's Encrypt client like acme.sh after the certificate is issued, so that the entire process of issuance (or renewal) and deployment can be automated.

Usage

There are no command-line arguments to deploy-freenas.py; the relevant configuration needs to be made in the script itself. The required changes are mostly self-explanatory, but are as follows:

  • PRIVATEKEY_PATH is the path to your TLS private key
  • FULLCHAIN_PATH is the path to concatenation of your certificate and the issuer's certificate. With most ACME clients, this file is saved as fullchain.pem or fullchain.cer.
  • USER should always be "root"
  • PASSWORD needs to be the root password for your FreeNAS server
  • DOMAIN_NAME is the FQDN of your FreeNAS server
  • PROTOCOL is the protocol used to connect to the API. If your FreeNAS server is configured to use HTTPS with a trusted certificate, it can be set to "https://". Otherwise, set it to "http://".

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.