What is the default TLS version of the python requests module?

Overview

As the title says. I was worried because the number of services that abolished TLS 1.0 has increased.

Related article

Click here for How to specify TLS version in python requests

environment

I'm running these on AWS Lambda.

investigation

http://stackoverflow.com/questions/38501531/forcing-requests-library-to-use-tlsv1-1-or-tlsv1-2-in-python

According to this article If the openSSL you are using is 1.0 series, it seems to automatically become TLS 1.2. The requests module itself does not predetermine the SSL / TLS version, It seems to use the SSL / TLS version returned from the related module (openSSL in this case).

In other words, it seems that which version of TLS the requests use depends on the version of openSSL, so let's check the version of openSSL on Lambda.

Survey method

Execute the following python code on lambda and get the result

# -*- coding:utf-8 -*-
import ssl

def lambda_handler(event, context):
    return ssl.OPENSSL_VERSION

result

"OpenSSL 1.0.1k-fips 8 Jan 2015"

Since it is 1.0.1, it seems that TLS 1.2 is used.

that's all

[Related article] How to specify TLS version in python requests Note on how to specify the TLS version with cURL, OpenSSL command

Recommended Posts

What is the default TLS version of the python requests module?
Let's use the Python version of the Confluence API module.
Test the version of the argparse module
[Python] What is @? (About the decorator)
pyenv-change the python version of virtualenv
[python] What is the sorted key?
Change the Python version of Homebrew
What is the python underscore (_) for?
Pass the path of the imported python module
About the virtual environment of python version 3.7
What is the cause of the following error?
[Python] Try pydash of the Python version of lodash
What is "mahjong" in the Python library? ??
Check the path of the Python imported module
What is python
What is Python
What is the XX file at the root of a popular Python project?
[Example of Python improvement] What is the recommended learning site for Python beginners?
What kind of book is the best-selling "Python Crash Course" in the world?
[Introduction to Python] What is the method of repeating with the continue statement?
How to specify TLS version in python requests
A note about the python version of python virtualenv
Try the free version of Progate [Python I]
This is the only basic review of Python ~ 1 ~
This is the only basic review of Python ~ 2 ~
[Python] A rough understanding of the logging module
Try using the collections module (ChainMap) of python3
This is the only basic review of Python ~ 3 ~
[Python] What is Pipeline ...
the zen of Python
[Python] What is virtualenv
[python] Get the list of classes defined in the module
What is the true identity of Python's sort method "sort"? ??
Basics of Python learning ~ What is a string literal? ~
Write data to KINTONE using the Python requests module
What is a recommend engine? Summary of the types
Why is the first argument of [Python] Class self?
The copy method of pandas.DataFrame is deep copy by default
What to do if the progress bar is not displayed in tqdm of python
The timing when the value of the default argument is evaluated is different between Ruby and Python.
Align the version of chromedriver_binary
Put the latest version of Python on linux (Debian) on Chromebook
What is the activation function?
Make the display of Python module exceptions easier to understand
About the Python module venv
Automatic update of Python module
View using the python module of Nifty Cloud mobile backend
What is the Linux kernel?
About the ease of Python
Version upgrade of python Anaconda
Check OpenSSL version of python 2.6
[Python] Python and security-① What is Python?
[Python] * args ** What is kwrgs?
What is the interface for ...
What beginners learned from the basics of variables in python
About the features of Python
Initial setting of Mac ~ Python (pyenv) installation is the fastest
What is the Callback function?
2015-11-26 python> Display the function list of the module> import math> dir (math)
What is a python map?
The Power of Pandas: Python