from slimacme import ACME le=ACME('./keys') reg.update( challenge_pre=[ # Truncate the challenge zone file '> /etc/bind/db-acme.example.org' ], challenge_post=[ 'dnssec-signzone /etc/bind/db.example.org ', 'systemctl reload named' ] ) le.ident_update('dns', 'example.org', htdocs='/var/www/htdocs', zonefile='/etc/bind/db-acme.example.org', ) le.ident_update('dns', 'www.example.org', htdocs='/var/www/htdocs', zonefile='/etc/bind/db-acme.example.org', ) le.ident_update('dns', 'mail.example.org', zonefile='/etc/bind/db-acme.example.org', )
from slimacme import ACME le=ACME('./keys') le.reg()
from slimacme import ACME le=ACME('./keys') le.cert_gen_key('k1') le.cert_csr('k1', 'example.org', ident_dns=['example.org','www.example.org','mail.example.org']) le.cert_gen_key('k2') le.cert_csr('k2', 'mail.example.org', ident_dns=['mail.example.org'])
from slimacme import ACME import time le=ACME('./keys') # verify unverified or expiring in 20 days domains # reissue unissued or expiring in 20 days certificates le.autorenew(time.time()+86400*20)