All Projects → sergioaugrod → acmex

sergioaugrod / acmex

Licence: MIT license
Elixir Client for the Lets Encrypt ACME V2 protocol. [DEPRECATED]

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to acmex

flynn-certbot
A Certbot that you can run on your Flynn cluster
Stars: ✭ 22 (+57.14%)
Mutual labels:  letsencrypt
LetsEncrypt
C# layer for generation of wildcard Let's Encrypt SSL certificates
Stars: ✭ 67 (+378.57%)
Mutual labels:  letsencrypt
letsencrypt-autorenew-docker
letsencrypt certificate generation and cron enabled autorenewal as a docker image
Stars: ✭ 59 (+321.43%)
Mutual labels:  letsencrypt
docker-letsencrypt-django-nginx-proxy-uwsgi-postgres
Docker + Letsencrypt + Django + Nginx-Proxy + uWSGI 教學
Stars: ✭ 26 (+85.71%)
Mutual labels:  letsencrypt
httpsbook
《深入浅出HTTPS:从原理到实战》代码示例、勘误、反馈、讨论
Stars: ✭ 77 (+450%)
Mutual labels:  letsencrypt
acme2
Another PHP client for acme protocal (version 2) implementation, used for generating letsencrypt's free ssl certificates.
Stars: ✭ 45 (+221.43%)
Mutual labels:  letsencrypt
MySB
MySB (MySeedBox) is more than a simplified installation script of a multi-users Seedbox. There are many solutions to install a Seedbox, but we never talk about safety and regular operations. MySB could be renamed MySSB (MySecuredSeedBox).
Stars: ✭ 105 (+650%)
Mutual labels:  letsencrypt
letsencrypt-manual-hook
Allows you to use dehydrated (a Let's Encrypt/Acme Client) and DNS challenge response with a DNS provider that requires manual intervention
Stars: ✭ 61 (+335.71%)
Mutual labels:  letsencrypt
docker-compose-sentry
Docker Compose configuration for running a Sentry server.
Stars: ✭ 20 (+42.86%)
Mutual labels:  letsencrypt
wat
WAT - Windows ACME Tool
Stars: ✭ 28 (+100%)
Mutual labels:  letsencrypt
laravel-lets-encrypt
Let's Encrypt wrapper for Laravel
Stars: ✭ 112 (+700%)
Mutual labels:  letsencrypt
Hermes-Secure-Email-Gateway
Hermes Secure Email Gateway is a Free Open Source Ubuntu 18.04 or 20.04 Server based Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. It features the latest email authentication techniques such as SPF, DKIM and DMARC.
Stars: ✭ 35 (+150%)
Mutual labels:  letsencrypt
openconnect-installer
Automatically set up an Openconnect/Anyconnect VPN server(ocserv) with Let's Encrypt with just one command in CentOS 8.
Stars: ✭ 64 (+357.14%)
Mutual labels:  letsencrypt
LeSslCertToAzure
Powershell Module that creates a SSL/TLS Certificate with Let's Encrypt Service and apply to an Azure Application Gateway.
Stars: ✭ 14 (+0%)
Mutual labels:  letsencrypt
Intranet-Lets-Encrypt-Certification
Guide to setting up a Let's Encrypt SSL certificate for a non-public facing server.
Stars: ✭ 27 (+92.86%)
Mutual labels:  letsencrypt
certgrinder
Certgrinder is a client/server system for getting LetsEncrypt certificates for your infrastructure. ACME challenges are handled by the Certgrinder server, making it possible to get certificates in highly isolated environments, since only an SSH connection to the Certgrinder server is needed.
Stars: ✭ 24 (+71.43%)
Mutual labels:  letsencrypt
dehydrated-certificate-installers
Tools to install certificates which are created with dehydrated.
Stars: ✭ 38 (+171.43%)
Mutual labels:  letsencrypt
letsencrypt-dcos
Let's Encrypt DC/OS!
Stars: ✭ 39 (+178.57%)
Mutual labels:  letsencrypt
self-hosted-services
A core set of privacy-preserving services that can be easily self-hosted via Docker Compose.
Stars: ✭ 123 (+778.57%)
Mutual labels:  letsencrypt
keycloak-kubernetes
Keycloak deployment into Kubernetes cluster
Stars: ✭ 25 (+78.57%)
Mutual labels:  letsencrypt

Acmex

Hex.pm

This project is no longer maintained.

Acmex is an Elixir Client for the Lets Encrypt ACMEv2 protocol.

Status

  • Acmex is not used in production and have a very incomplete support to ACMEv2 protocol.
  • It does not have a good flexibility, because it uses a GenServer to keep the account state and application config to get the directory URL.

Installation

The package can be installed by adding acmex to your list of dependencies in mix.exs:

def deps do
  [
    {:acmex, "~> 0.2.0"}
  ]
end

Configure

Set the directory_url in your config.exs:

config :acmex,
  directory_url: "https://acme-v02.api.letsencrypt.org/directory"

If you need a staging version of Lets Encrypt ACMEv2 set the directory_url as https://acme-staging-v02.api.letsencrypt.org/directory.

Usage

Client

Starting the client

Acmex.start_link(key: account_rsa_key)

To use on your supervisor:

children = [
  {Acmex, [[key: "-----BEGIN RSA PRIVATE KEY-----..."]]}
]

Account

Creating a new account

The second parameter is about the agreement of the terms of service.

Acmex.new_account(["mailto:[email protected]"], true)

Fetch existing account

Acmex.get_account()

Order

Creating a new order

Acmex.new_order(["example.com"])

Fetch an existing order

Acmex.get_order(order.url)

Challenge

Receive a challenge

authorization = List.first(order.authorizations)
challenge = Acmex.Resource.Authorization.http(authorization)

Return a challenge response

Acmex.get_challenge_response(challenge)

Validate the challenge

{:ok, challenge} = Acmex.validate_challenge(challenge)

Fetch an existing challenge

Acmex.get_challenge(challenge.url)

Certificate

Finalize an order

order_key = Acmex.OpenSSL.generate_key(:rsa)
{:ok, csr} = Acmex.OpenSSL.generate_csr(order_key, ["example.com"])
{:ok, order} = Acmex.finalize_order(order, csr)

Get the certificate

Acmex.get_certificate(order)

Revoke a certificate

{:ok, certificate} = Acmex.get_certificate(order)
Acmex.revoke_certificate(certificate, 0)

Timeout

All the Acmex functions accept an optional parameter to set the process timeout. The default value is 5000ms.

Documentation

The full documentation can be found at https://hexdocs.pm/acmex.

Contributing

To run the tests you need an ACME Test Server. You can use Pebble. For this reason, there is a docker-compose.yml file with pebble defined as a service.

To use pebble and run the tests:

$ docker-compose up
$ mix test

License

MIT License

Copyright (c) 2020 Sérgio Rodrigues

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].