python requests 请求https加固的ES

https ca + key + password

session = requests.Session()
session.mount('https://', SSLAdapter(certfile, keyfile, password))
session.get(url)

http auth认证 user password 

session.get(...., auth=('user', 'password'))

  

原文地址:https://www.cnblogs.com/startnow/p/13693655.html