Commit 41ee3024 by ale

Add a simple WSGI app wrapper

parent 9a790c66
Pipeline #361 passed with stages
in 1 minute 25 seconds
Showing with 20 additions and 0 deletions
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 sign in to comment