ACME: How to automate the process of obtaining certificates?

ACME: How to automate the process of obtaining certificates?