예제 #1
0
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',
)