Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
autoca
Commits
41ee3024
Commit
41ee3024
authored
Jul 14, 2017
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a simple WSGI app wrapper
parent
9a790c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
autoca/wsgiapp.py
autoca/wsgiapp.py
+20
-0
No files found.
autoca/wsgiapp.py
0 → 100644
View file @
41ee3024
import
os
from
autoca
import
ca
from
autoca
import
ca_app
from
autoca
import
certutil
def
create_app
():
config
=
{
'CERTIFICATE_BITS'
:
2048
,
'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'
],
certutil
.
parse_subject
(
config
[
'CA_SUBJECT'
]),
config
[
'CERTIFICATE_BITS'
])
return
make_app
(
ca_instance
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment