Exemplo n.º 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',
)
Exemplo n.º 2
0
from slimacme import ACME

le=ACME('./keys')
le.reg()
Exemplo n.º 3
0
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'])
Exemplo n.º 4
0
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)