def _get_tls_cacert(url, config):
 if (not config.tls_verify):
  return False
 certs = getattr(config, 'tls_cacerts', None)
 if (not certs):
  return True
 elif isinstance(certs, (string_types, tuple)):
  return certs
 else:
  hostname = urlsplit(url)[1]
  if ('@' in hostname):
   hostname = hostname.split('@')[1]
  return certs.get(hostname, True)

def _get_tls_cacert ( url , config ) : if ( not config . tls_verify ) : return False certs = getattr ( config , 'tls_cacerts' , None ) if ( not certs ) : return True elif isinstance ( certs , ( string_types , tuple ) ) : return certs else : hostname = urlsplit ( url ) [ 1 ] if ( '@' in hostname ) : hostname = hostname . split ( '@' ) [ 1 ] return certs . get ( hostname , True )
get addiotinal ca cert for a specific url .