Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
autoca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
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