Is there a Python library for generating ACME certificates?

Hello.
I am looking for a Python library that can script acme certificates. I want to programmatically generate certificates in code.
I did a brief Google search and couldnt find much yet. If not then what else can i do?

Yep! The certbot project is ACME, and the core of it is available as a library.

There's an example at certbot/acme/examples/http01_example.py at main · certbot/certbot · GitHub which might be helpful for getting started.

There's some api docs at https://acme-python.readthedocs.io/ but they don't have much for getting started - you're better off reading the example.

3 Likes