1
0
mirror of https://github.com/laurivosandi/certidude synced 2025-10-31 09:29:13 +00:00

Add preliminary bootstrap API call

This commit is contained in:
2017-04-12 13:21:49 +00:00
parent 90b663ce26
commit 09724e04dc
6 changed files with 61 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
import logging
from certidude.decorators import serialize
from certidude.config import cp
from certidude import authority, config, const
from jinja2 import Template
logger = logging.getLogger(__name__)
class BootstrapResource(object):
def on_get(self, req, resp):
resp.body = Template(open(config.BOOTSTRAP_TEMPLATE).read()).render(
authority = const.FQDN,
servers = [cn for cn, path, buf, cert, server in authority.list_signed() if server])