File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 
src/DIRAC/ConfigurationSystem/Client Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -467,9 +467,9 @@ def _getCACerts(cs_path):
467467            gLogger .debug ("Failed to get the configuration parameter: CRT. Using False" )
468468            certs  =  False 
469469        else :
470-             certs  =  result ["Value" ]
470+             certs  =  result ["Value" ]. lower ()  in  ( "true" ,  "yes" ,  "y" ,  "1" ) 
471471    else :
472-         certs  =  result ["Value" ]
472+         certs  =  result ["Value" ]. lower ()  in  ( "true" ,  "yes" ,  "y" ,  "1" ) 
473473    parameters ["CRT" ] =  certs 
474474
475475    # If connection is through certificates get the mandatory parameters: ca_certs, client_key, client_cert 
@@ -574,9 +574,9 @@ def _getCACerts(cs_path):
574574            gLogger .debug ("Failed to get the configuration parameter: SSL. Assuming SSL is needed" )
575575            ssl  =  True 
576576        else :
577-             ssl  =  False   if   result ["Value" ].lower () in  ("false " , "no " , "n"  )  else   True 
577+             ssl  =  result ["Value" ].lower () in  ("true " , "yes " , "y"  ,  "1" ) 
578578    else :
579-         ssl  =  False   if   result ["Value" ].lower () in  ("false " , "no " , "n"  )  else   True 
579+         ssl  =  result ["Value" ].lower () in  ("true " , "yes " , "y"  ,  "1" ) 
580580    parameters ["SSL" ] =  ssl 
581581
582582    return  S_OK (parameters )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments