def on_get(self, req, resp):
    logger.info('Served CA certificate to %s', req.context.get('remote_addr'))
    resp.stream = open(config.AUTHORITY_CERTIFICATE_PATH, 'rb')
    resp.append_header('Content-Type', 'application/x-x509-ca-cert')
    resp.append_header('Content-Disposition', ('attachment; filename=%s.crt' % const.HOSTNAME))
def on_get(self, req, resp):
    logger.info('Served CA certificate to %s', req.context.get('remote_addr'))
    resp.stream = open(config.AUTHORITY_CERTIFICATE_PATH, 'rb')
    resp.append_header('Content-Type', 'application/x-x509-ca-cert')
    resp.append_header('Content-Disposition', ('attachment; filename=%s.crt' % const.HOSTNAME))