-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added uWSGI support and documentation
- Loading branch information
1 parent
d024f77
commit 10a329c
Showing
4 changed files
with
125 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
|
||
import falcon | ||
from certidude.wrappers import CertificateAuthorityConfig | ||
from certidude.api import CertificateAuthorityResource, \ | ||
RequestDetailResource, RequestListResource, \ | ||
SignedCertificateDetailResource, SignedCertificateListResource, \ | ||
RevocationListResource, IndexResource, ApplicationConfigurationResource, \ | ||
CertificateStatusResource | ||
|
||
# TODO: deduplicate routing code | ||
# TODO: set up /run/certidude/api paths and permissions | ||
|
||
config = CertificateAuthorityConfig("/etc/ssl/openssl.cnf") | ||
|
||
app = falcon.API() | ||
app.add_route("/api/{ca}/ocsp/", CertificateStatusResource(config)) | ||
app.add_route("/api/{ca}/signed/{cn}/openvpn", ApplicationConfigurationResource(config)) | ||
app.add_route("/api/{ca}/certificate/", CertificateAuthorityResource(config)) | ||
app.add_route("/api/{ca}/revoked/", RevocationListResource(config)) | ||
app.add_route("/api/{ca}/signed/{cn}/", SignedCertificateDetailResource(config)) | ||
app.add_route("/api/{ca}/signed/", SignedCertificateListResource(config)) | ||
app.add_route("/api/{ca}/request/{cn}/", RequestDetailResource(config)) | ||
app.add_route("/api/{ca}/request/", RequestListResource(config)) | ||
app.add_route("/api/{ca}/", IndexResource(config)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters