Changeset 4156 for TI12-security


Ignore:
Timestamp:
01/09/08 12:16:43 (11 years ago)
Author:
cbyrom
Message:

Improve logging in CredWallet? and X509.

Location:
TI12-security/trunk/python/ndg.security.common/ndg/security/common
Files:
2 edited

Legend:

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

    r4129 r4156  
    752752        if aaClnt is not None: 
    753753            try: 
     754                log.debug("Calling attribute authority using supplied client") 
    754755                attCert = aaClnt.getAttCert(userAttCert=extAttCert) 
    755756                                
     
    768769                # Request a new attribute certificate from the Attribute 
    769770                # Authority 
     771                log.debug("Calling attribute authority using info from \ 
     772                    properties file, %s" %self.aaPropFilePath) 
    770773                attCert = self.__aa.getAttCert(userAttCert=extAttCert) 
    771774                 
     
    797800        # 
    798801        # Nb. if the certificates signature is invalid, it will be rejected 
     802        log.debug("Adding credentials into wallet...") 
    799803        self.addCredential(attCert) 
    800804         
     
    970974         
    971975        log.debug("CredWallet.getAttCert ...") 
    972          
    973976        if aaURI: 
    974977            self.__setAAuri(aaURI) 
     
    11891192                                            extAttCertList=extAttCertList, 
    11901193                                            trustedHostInfo=trustedHostInfo)             
    1191               
    11921194         
    11931195#_____________________________________________________________________________ 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/X509.py

    r4120 r4156  
    279279            elif dtNow > self.__dtNotAfter: 
    280280                raise X509CertExpired, \ 
    281                     "Certificate has expired: the time now is %s " % dtNow + \ 
    282                     "and the certificate expiry is %s" % self.__dtNotAfter 
     281                    "Certificate, %s, has expired: the time now is %s  \ 
     282                    and the certificate expiry is %s." \ 
     283                    %(self.__filePath, dtNow, self.__dtNotAfter) 
    283284        else: 
    284285            return dtNow > self.__dtNotBefore and dtNow < self.__dtNotAfter 
Note: See TracChangeset for help on using the changeset viewer.