Code Monkey home page Code Monkey logo

sa-acme-sh's Introduction

sa-acme-sh

Build Status

Example of usage:

Simple

     - {
         role: "sa-acme-sh",
         option_setup_cron: true
       }

Advanced

vars:

  my_le_config_properties: 
    - {regexp: "^export GD_Key=*", line: "export GD_Key=OHOH"}
    - {regexp: "^export GD_Secret=*", line: "export GD_Secret=AHAH"} 

  roles:
    - {
        role: "sa-acme-sh",

        option_setup_cron: true,

        le_wellknown_path: "/var/www/.well-known/acme-challenge",
        acmesh_version: 2.8.0,
        le_config_properties: "{{ my_le_config_properties }}" 
      }

Issuing certificate example:

Certificate issuing via godaddy provider

export GD_Key=***
export GD_Secret=***
acme.sh --issue -d voronenko.net -d www.voronenko.net --dns dns_gd

Listing certificates

acme.sh --list
Main_Domain    KeyLength  SAN_Domains        Created                       Renew
voronenko.net  ""         www.voronenko.net  Wed Mar  6 12:37:30 UTC 2019  Sun May  5 12:37:30 UTC 2019

Certificate issuing using .wellknown

nginx.conf

location /.well-known/acme-challenge/ {
  default_type "text/plain";
  root /var/www/;
}
acme.sh -d voronenko.net -d www.voronenko.net --webroot /var/www/ --issue

Usage with ansible galaxy workflow

If you installed the sa-acme-sh role using the command

ansible-galaxy install softasap.sa-acme-sh

the role will be available in the folder library/softasap.sa-acme-sh Please adjust the path accordingly.

     - {
         role: "softasap.sa-acme-sh"
       }

Copyright and license

Code is dual licensed under the [BSD 3 clause] (https://opensource.org/licenses/BSD-3-Clause) and the [MIT License] (http://opensource.org/licenses/MIT). Choose the one that suits you best.

Reach us:

Subscribe for roles updates at [FB] (https://www.facebook.com/SoftAsap/)

Join gitter discussion channel at Gitter

Discover other roles at http://www.softasap.com/roles/registry_generated.html

visit our blog at http://www.softasap.com/blog/archive.html

sa-acme-sh's People

Contributors

voronenko avatar

Stargazers

 avatar

Watchers

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