Changes between Version 2 and Version 3 of CredPrinterDocs


Ignore:
Timestamp:
May 24, 2011 9:36:00 AM (10 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CredPrinterDocs

    v2 v3  
    77We 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].
    88
    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 pythin install script (as {{{root}}}):
     9Once 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}}}):
    1010
    1111{{{
     
    1515}}}
    1616
    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.
     17This 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).
    1818
    1919Because the installation runs as {{{root}}}, you may need to delete the distribution directory as {{{root}}}:
     
    2424}}}
    2525
     26== Running the server ==
     27
     28The 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
     30The server also takes a {{{--port}}} argument defining the port to listen on.  By default it listens on port 13232.
     31
     32Assuming that {{{./cert.pem}}} contains a certificate and key for the server:
     33
     34{{{
     35$ cred_server.py --cert ./cert.pem
     36}}}
     37
     38starts the server under SSL/https listening on port 13232,
     39
     40{{{
     41$ cred_server.py --port 54321 --cert ./cert.pem
     42}}}
     43
     44starts the server under SSL/https listening on port 54321
     45
     46{{{
     47$ cred_server.py --port 54321
     48}}}
     49
     50starts the server under http listening on port 54321, and
     51
     52{{{
     53$ cred_server.py
     54}}}
     55
     56starts the server under http on port 13232.
     57
     58