Changes between Version 2 and Version 3 of CredPrinterDocs
- Timestamp:
- May 24, 2011 9:36:00 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CredPrinterDocs
v2 v3 7 7 We distribute the credential printer as a python application. It depends on the standard installation and the M2Crypto package, available from several places. It also depends on [source:doc/INSTALL libabac]. 8 8 9 Once the prerequisites are installed, download the [attachment:cred_printer-1.00.tar.gz credential printer source] and untar it, change to the {{{cred_printer-1.00}}} directory and run the standard pyth in install script (as {{{root}}}):9 Once the prerequisites are installed, download the [attachment:cred_printer-1.00.tar.gz credential printer source] and untar it, change to the {{{cred_printer-1.00}}} directory and run the standard python install script (as {{{root}}}): 10 10 11 11 {{{ … … 15 15 }}} 16 16 17 This will install a python egg into your site-packages and two python scripts, {{{cred_server.py}}} and {{{cred_client.py}}} into your standard biraries directory ({{{/usr/local/bin}}} on FreeBSD or Ubuntu .17 This will install a python egg into your site-packages and two python scripts, {{{cred_server.py}}} and {{{cred_client.py}}} into your standard biraries directory ({{{/usr/local/bin}}} on FreeBSD or Ubuntu). 18 18 19 19 Because the installation runs as {{{root}}}, you may need to delete the distribution directory as {{{root}}}: … … 24 24 }}} 25 25 26 == Running the server == 27 28 The server takes an optional argument, {{{--cert}}} and a certificate with which to identify itself under SSL/https. If omitted, the server will run under http, unencrypted and unauthenticated. If run under SSL, the server expects clients to supply a certificate, but does not vaildate it's authorization chain. This is for future expansion using ABAC authorization to the server and self-certifying identities. 29 30 The server also takes a {{{--port}}} argument defining the port to listen on. By default it listens on port 13232. 31 32 Assuming that {{{./cert.pem}}} contains a certificate and key for the server: 33 34 {{{ 35 $ cred_server.py --cert ./cert.pem 36 }}} 37 38 starts the server under SSL/https listening on port 13232, 39 40 {{{ 41 $ cred_server.py --port 54321 --cert ./cert.pem 42 }}} 43 44 starts the server under SSL/https listening on port 54321 45 46 {{{ 47 $ cred_server.py --port 54321 48 }}} 49 50 starts the server under http listening on port 54321, and 51 52 {{{ 53 $ cred_server.py 54 }}} 55 56 starts the server under http on port 13232. 57 58