Skip to main content

ACME v2 Client using asyncio

Project description

ACMEasync

AsyncIO ACME client for Python 3.

Why?

Moar async moar better. Seriously though, I wanted to utilize Python's asyncio to create an automatically certifying proxy server that "just works".

How?

You can use the library as is, see acmeasync/__main__.py and acmeasync/certbot2.py as guides for spinning your own implementations, or use the built in tls reverse proxy (currently raw TCP only).

To run the proxy:

export DOMAINS="example.com,example.net"
export PORT=80 # or whatever port you wish to run the ACME challenge http server on, you need root to serve on 80, or you can forward 8080 if you're running in a docker container for example.
export EMAIL="youremail@example.com"
export PROXIES="8081:towel.blinkenlights.nl:23,8082:towel.blinkenlights.nl:23" # format: localport:remotehost:remoteport,...
export DIRECTORY_URL="https://acme-v02.api.letsencrypt.org/directory"
acmeleproxy

It's recommended you run as root so that proxy processes can drop privileges and lose access to your private keys, but this is optional.

API documentation incoming soon...

But why Python?

Yeah, I know, the GIL, the proxy server uses multiprocessing to spawn a subprocess per connection, which should give much better performance. This kinda thing exists the nodejs world already, why not python too?

Requirements

Pulled in by setup.py:

  • acme
  • aiohttp
  • aiohttp-requests

Required from your OS:

  • python3-openssl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

acmeasync-0.1.1a1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file acmeasync-0.1.1a1-py3-none-any.whl.

File metadata

  • Download URL: acmeasync-0.1.1a1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for acmeasync-0.1.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 25c0f79c93167248781c9e70cd16b29102acb0fe0ad12335b96d84d8934b0f16
MD5 d37e1ff37552af87d0d8dc1a5b3a5da4
BLAKE2b-256 ef06f14cc97afe0a5a66dbb4d5f2f12e32fed688f35a808603b53aee93c41b6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page