title: Python-How to solve ssl.SSLError: [SSL: CA_MD_TOO_WEAK]
body: <p>I've got a huge problem with authorization of my API request. I'm using python 3.10. For setting up the client I have code as follows:</p>
  <pre><code>from zeep import exceptions, helpers
  from requests import Session
  from zeep.transports import Transport
  from zeep import Client
  
  def login(register):
  .......
  elif register == 'XXX':
    authTok = '' #only for coherence
    wsdl_path = r&quot;path_to_my_wsdl.wsdl&quot;
    url = urllib.parse.urljoin('file:', urllib.request.pathname2url(os.path.abspath(wsdl_path)))
    session = Session()
    session.verify = False
    session.cert = (r'path_to_my_cert.pem')
    client = Client(wsdl=url, transport=Transport(session=session))
  return client, authTok
  </code></pre>
  <p>Then I used code below to get the client:</p>
  <pre><code>client, authTok = login('XXX')
  search = {}
  search['sort'] = {'sort_att': 'number',
                    'sort_asc': 'True'}
  search['criterion'] = {'search_range': 'RP', 'id': '123456789'}
  </code></pre>
  <p>No error till this step. And finally I've tried to send my request like this:
  <code>r = client.service.searchcompany(params=search)</code></p>
  <p>Here I got error like this:</p>
  <pre><code>ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:3862)
  </code></pre>
  <p>With openssl I've generated new cert:</p>
  <pre><code>openssl req -x509 -newkey rsa:4096 -keyout key.pem -out mycert.pem -sha256 -days 365 -nodes
  </code></pre>
  <p>As the output I've received two files: key.pem and mycert.pem.
  With command <code>certifi.where()</code> I found location of my file cacert.pem and pasted into it the content of file mycert.pem.</p>
  <p>Unfortunately the error still occurs. Could anybody explain what I'm doing wrong?</p>