source: TI12-security/trunk/python/ @ 2289

Subversion URL:
Revision 2289, 1.4 KB checked in by pjkersha, 15 years ago (diff)

modified soap_getAttCert to allow for unsigned client messages. If the
useSignatureHandler flag is not set, then the certificate passed in to
AttAuthority?.getAttCert is the userCert element of the SOAP message.

This is a useful capability if both client and service are behind a firewall
and message security is not required.

added useSignatureHandler element to list of elements in the properties file.
If this is not set, then the service will not apply signature or signature
verification to messages.

python/ use dictionary get() rather then [key] for signature keywords. This enables
them to be omitted in the config file so as to switch off the signature handler.

python/ experimented with omitting signature PKI settings.

set serverCNprefix element to host/ for this MyProxy? installations server cert.

altered for account on this machine.

python/ slight change to Python 2.5 check for
ElementTree inclusion

SignatureHandler? is now optional. It's left as None if none of the signature
keywords are set via init. It can be set later as the signatureHandler
property now has set capability enabled.

1<?xml version="1.0" encoding="utf-8"?>
3    <name>Site B</name>
4    <portNum>5100</portNum>
5    <useSSL></useSSL> <!-- leave blank to use http -->
6    <sslCertFile></sslCertFile>
7    <sslKeyFile></sslKeyFile>
8    <sslKeyPwd>Junk</sslKeyPwd>
9    <useSignatureHandler>Yes</useSignatureHandler> <!-- leave blank for no signature -->
10    <certFile>$NDGSEC_AA_UNITTEST_DIR/aa-cert.pem</certFile>
11    <caCertFile>$NDGSEC_AA_UNITTEST_DIR/cacert.pem</caCertFile>
12    <keyFile>$NDGSEC_AA_UNITTEST_DIR/aa-key.pem</keyFile>
13    <keyPwd>Junk</keyPwd>
14    <!--
15    Set the certificate used to verify the signature of messages from the
16    client.  This can usually be left blank since the client is expected to
17    include the cert with the signature in the inbound SOAP message
18    -->
19    <clntCertFile></clntCertFile>   
20    <attCertLifetime>28800</attCertLifetime>
21    <attCertNotBeforeOff>0</attCertNotBeforeOff>
22    <attCertFilePfx>ac-</attCertFilePfx>
23    <attCertFileSfx>.xml</attCertFileSfx>
24    <mapConfigFile>$NDGSEC_AA_UNITTEST_DIR/siteBMapConfig.xml</mapConfigFile>
25    <attCertDir>$NDGSEC_AA_UNITTEST_DIR</attCertDir>
26    <dnSeparator>/</dnSeparator>
27    <userRolesModFilePath>$NDGSEC_AA_UNITTEST_DIR</userRolesModFilePath>
28    <userRolesModName>siteBUserRoles</userRolesModName>
29    <userRolesClassName>TestUserRoles</userRolesClassName>
30    <userRolesPropFile></userRolesPropFile>
Note: See TracBrowser for help on using the repository browser.