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:
acmeaiohttpaiohttp-requests
Required from your OS:
python3-openssl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acmeasync-0.1.6a0.tar.gz.
File metadata
- Download URL: acmeasync-0.1.6a0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
281e701ddd35bb26fcc34df3ffb4eab21a443845bcf507c78bfdbed61e6a1ba1
|
|
| MD5 |
c4368674c41010fcb017fbc8ed1fee66
|
|
| BLAKE2b-256 |
a4295c42473eb1e50e3365d2f8acd0779f2b26817f5048d89468341a5e73539e
|
File details
Details for the file acmeasync-0.1.6a0-py3-none-any.whl.
File metadata
- Download URL: acmeasync-0.1.6a0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ca7fdf2532465015be35845106186dad580d5dafe45af6959926c9de009a1b3
|
|
| MD5 |
73aee75bc0125862f537a02209d5b3b2
|
|
| BLAKE2b-256 |
7421d90514f61de645bdc43e0a9e13866737b847e37eb25834b175e5dcc7b101
|