Commit 41ee3024 authored by ale's avatar ale
Browse files

Add a simple WSGI app wrapper

parent 9a790c66
import os
from autoca import ca
from autoca import ca_app
from autoca import certutil
def create_app():
config = {
'DATA_DIR': './data',
'CA_SUBJECT': 'ou=CA',
'CA_DIGEST': 'sha256',
# APP_CONFIG *must* be defined.
execfile(os.getenv('APP_CONFIG'), {}, config)
ca_instance = ca.CA(config['DATA_DIR'],
return make_app(ca_instance)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment