Giter Site home page Giter Site logo

hasencrypt's Introduction

hasencrypt

A simple ACME (i.e. Let's Encrypt) client in Haskell.

Building and Installing

To build and install hasencrypt with stack, just clone the repository and run

$ stack setup
$ stack build
$ stack install

Usage

Usage: hasencrypt [OPTION...] domains...

  -D[URL]  --directory-url[=URL]  The ACME directory URL.
                                  If this option is specified without URL, the Let's Encrypt directory is
                                  used. For testing purposes this option can be omitted, in which case the
                                  Let's Encrypt staging directory is used. Note that certificates issued by
                                  the staging environment are not trusted.
                                  
  -w DIR   --webroot=DIR          Path to the webroot for responding to http challenges.
                                  
  -a FILE  --account-key=FILE     The ACME account key.
                                  
  -d FILE  --domain-key=FILE      Key for issuing the certificate.
                                  
  -r FILE  --renew=FILE           An optional certificate that is checked for impending expiration.
                                  If renewal is required the certificate is replaced by a newly issued one.
                                  Otherwise, no action is performed.
                                  
  -h       --head                 Fetch only the leaf certificate and not the full certificate chain.

Examples

  • Generating the required private keys, registering a new ACME account and creating a certificate for example.com and example.org:
$ openssl genrsa 4096 > account.pem
$ openssl genrsa 4096 > domain.pem
$ hasencrypt -D -w path/to/webroot -a account.pem -d domain.pem example.com example.org > cert.pem
  • Renewing (replacing) an existing certificate if and only if it will expire soon (i.e. in less than a week):
$ hasencrypt -D -w path/to/webroot -a account.pem -d domain.pem example.com example.org -r cert.pem

hasencrypt's People

Contributors

smayr42 avatar

Stargazers

Krishnan Parthasarathi avatar Masao Uebayashi avatar Deck Pope avatar

Watchers

 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.