Skip to content

Commit

Permalink
* Ignore generated files.
Browse files Browse the repository at this point in the history
* Made application run properly.

* Improved long description.
  • Loading branch information
strichter committed Sep 4, 2008
1 parent f1f9cb3 commit f18e466
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 6 deletions.
11 changes: 9 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
CHANGES
=======


0.1.0 (2008-??-??)
0.1.0 (2008-09-03)
------------------

- Initial Release

* Key Generation Service

* Encryption Service (Master and Local)

* REST API for key communication between encryption services

* Encrypted Persistent Storage
19 changes: 19 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
This package provides a NIST SP 800-57 compliant Key Management Infrastructure
(KMI).

To get started do::

$ python boostrap.py # Must be Python 2.5
$ ./bin/buildout # Depends on successfull compilation of M2Crypto
$ ./bin/paster serve server.ini

The server will come up on port 8080. You can create a new key encrypting key
using::

$ wget http://localhost:8080/new -O kek.dat

The data encryption key can now be retrieved by posting the KEK to another
URL::

$ wget http://localhost:8080/key --post-file kek.dat -O datakey.dat

Note: To be compliant, the server must use an encrypted communication cahnnel
of course.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ def read(*rnames):

setup (
name='keas.kmi',
version='0.1.0dev',
version='0.1.0',
author = "Stephan Richter and the Zope Community",
author_email = "zope-dev@zope.org",
description = "A Key Management Infrastructure",
long_description=(
read('README.txt')
+ '\n\n' +
read('src', 'keas', 'kmi', 'README.txt')
+ '\n\n' +
read('CHANGES.txt')
),
license = "ZPL 2.1",
Expand Down
21 changes: 21 additions & 0 deletions src/keas/kmi/application.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
##############################################################################
#
# Copyright (c) 2008 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""
$Id$
"""
__docformat__ = "reStructuredText"
from zope.error.error import RootErrorReportingUtility

globalErrorReportingUtility = RootErrorReportingUtility()
globalErrorReportingUtility.setProperties(20, True, ())
16 changes: 13 additions & 3 deletions src/keas/kmi/application.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,23 @@

<utility
provides="zope.error.interfaces.IErrorReportingUtility"
component="zope.error.error.globalErrorReportingUtility"
component="keas.kmi.application.globalErrorReportingUtility"
/>

<include package="keas.kmi" />

<subscriber handler="zope.component.event.objectEventNotify" />

<!-- Setup charset negotiation -->
<adapter
factory="zope.publisher.http.HTTPCharsets"
for="zope.publisher.interfaces.http.IHTTPRequest"
provides="zope.i18n.interfaces.IUserPreferredCharsets"
/>
<adapter
factory="zope.app.publisher.browser.ModifiableBrowserLanguages"
for="zope.publisher.interfaces.http.IHTTPRequest"
provides="zope.i18n.interfaces.IModifiableUserPreferredLanguages"
/>

<include package="keas.kmi" />
<include package="keas.kmi" file="db.zcml" />

Expand Down

0 comments on commit f18e466

Please sign in to comment.