Skip to main content

An ACME(RFC8555) client implementation in Python.

Project description

AcmeN

AcmeN is an ACME(RFC8555) client implemented in Python.

Note: AcmeN is still under actively development, there will be some breaking changes until the first stable version v1.0.0 is released. Please keep an eye on the change log.

Quick Start

Install AcmeN using pip:

pip install acmen

Generate account key using openssl:

openssl ecparam -genkey -noout -name secp384r1 -out account.key

Create a python file named main.py as follows and modify necessary parameters:

import logging
from acmen import AcmeN
from acmen.handlers import CloudflareDnsHandler

logging.basicConfig(level=logging.INFO)
acme = AcmeN('account.key')
handler = CloudflareDnsHandler('<your_api_token>')
acme.register_account(contact=['mailto:you@your-mail-provider.tld'])
acme.get_cert_by_domain('example.com', ['www.example.com', 'alt1.example.com'], handler)

After a few seconds, you will get your certificate and key file in the working directory.

For more information, please refer to AcmeN docs.(Chinese Simplified)

Project details


Download files

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

Source Distribution

acmen-0.5.1.tar.gz (35.6 kB view hashes)

Uploaded Source

Built Distribution

acmen-0.5.1-py3-none-any.whl (18.7 kB view hashes)

Uploaded Python 3

Supported by

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