Ignore:
Timestamp:
30/03/07 09:57:04 (13 years ago)
Author:
pjkersha
Message:

ndg.security.test/ndg/security/test/AttAuthority/siteAAttAuthorityProperties.xml,
ndg.security.test/ndg/security/test/AttAuthority/siteBAttAuthorityProperties.xml,
ndg.security.test/ndg/security/test/AttAuthority/attAuthorityClientTest.cfg:
minor changes to test settings

ndg.security.test/ndg/security/test/AttAuthority/AttAuthorityClientTest.py:
remove debug statements

Tests/dewsBinaryDataGet/binaryDataGet.py: set URI for command line

ndg.security.common/ndg/security/common/wsSecurity.py: if not in PEM format, remove any whitespace for
where the encoded cert has multiple line breaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/wsSecurity.py

    r2322 r2350  
    584584        @param parsedSOAP: object contain parsed SOAP message received from 
    585585        sender""" 
    586 #        import pdb;pdb.set_trace() 
    587 #        import xml.dom.expatbuilder 
    588 #        parsedSOAP.dom = xml.dom.expatbuilder.parse(\ 
    589 #'/home/pjkersha/Development/security/python/Tests/bmtTests/SOAPMessage_21-Mar-2007.txt') 
     586 
    590587        processorNss = \ 
    591588        { 
     
    750747                x509CertTxt=str(binSecTokNode.childNodes[0]._get_nodeValue()) 
    751748                 
    752                 # Convert parsed cert text into form that can be read 
     749                # Convert parsed cert text into PEM form that can be read 
    753750                # by X.509 string parser 
     751                # 
     752                # Check for line breaks at 64th byte as expected for PEM  
     753                # encoding 
    754754                if x509CertTxt[64] != "\n": 
     755                    # Check for other whitespace and reomve  
    755756                    # Expecting cert split into lines of length 64 bytes 
     757                    x509CertTxt = re.sub('\s', '', x509CertTxt) 
     758                     
     759                    # Split into lines of length 64 
    756760                    x509CertSpl = re.split('(.{64})', x509CertTxt) 
    757761                    x509CertTxt = '\n'.join([i for i in x509CertSpl if i]) 
Note: See TracChangeset for help on using the changeset viewer.