title: SSL fingerprint sent to Elasticsearch (Python) not recognized
body: <p>I have implemented Elasticsearch 8.2 in Python (Django project). When I first ran the Elasticsearch instance on my Mac, it generated a user password, as well as a SHA-256 fingerprint.</p>
  <p>I am trying to connect to Elasticsearch as follows in my <strong>es.py</strong> file:</p>
  <pre><code>es = Elasticsearch('https://elastic:cIibA3=doLeNGBiYLPKc@localhost:9200', ssl_assert_fingerprint=('b87062f65fefa3405306e55906b78939acbf6f10b32e9944908937ad9a43af94')) 
  </code></pre>
  <p>However, I am getting the following error:</p>
  <pre><code>TLS error caused by: TlsError(TLS error caused by: SSLError(Fingerprints did not match. Expected &quot;b87062f65fefa3405306e55906b78939acbf6f10b32e9944908937ad9a43af94&quot;, got &quot;b'6d4aa6321bad54a49ab0eaf4d6e56d791974031798b4dce15ff77b71f2d75799'&quot;.))
  </code></pre>
  <p>What I do not understand is that per the error message, the expected fingerprint does exactly match the one I specified in the &quot;ssl_assert_fingerprint&quot; param, yet it seems Elasticsearch is being sent another value by Python.</p>
  <p>Any ideas on how to fix this would be appreciated please.</p>
  <p>Django 4.0.4<br />
  Python 3.9.12</p>