Can not
Whew. I wrote from the conclusion because the great old men say it first from the conclusion. That's why.
An ordinary handsome engineer, Takahashi Man, was struggling to evolve the products he is currently involved in into the next form.
I wanted to dynamically test the device using the serverless API created by API Gateway + Lambda from the appium-python code that runs on AWS Device Farm.
Install the package to stretch out as soon as you wake up in the morning
$ pip install requests
Yes, I wrote requests in my usual routine so that my spine stretches and I exhale as I inhale.
response = requests.post(
url,
headers=headers,
data=json.dumps(payload)
)
return response.json()
It's the behavior I've been doing every day since I changed from PHPer to Pythonista. There is nothing scary.
Gently package and pour into Device Farm.
As an aside, Takahashi Man had a packaging shell called deploy.sh
that didn't deploy anything.
Once you've streamed it to Device Farm, you can fix the code for mistakes and you're done.
SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
Takahashi Man was breathtaking.
I'm getting tired of it, so I'll finish the main subject quickly. Since I dived super in the sub process, I will write only what I understood.
--SSLv3 died from various vulnerabilities such as POODLE
--requests-toolbelt can't be used
--When I try to install PyOpenSSL, the wheel is not set to none-any
.
--Originally PyOpenSSL was included
--Openssl version is 1.0.0
--The latest SSL version that can be used is TLSv1
--There was a cipher suite that could also be used for API Gateway
--Curl allows you to connect outside with TLSv1
--API Gateway requires client-side SNI support --Python side supports SNI from 2.7.9 --The Python version in Device Farm is 2.7.6
I have no choice but to reverse proxy or do my best with curl and parse ...
This is the result of diving into a treasure map and a place where you do not know if there is a treasure. I don't think anyone in the world has fallen into such a trap, but I hope it helps when the second and third servants appear ...
** Return me in February! ** **
Recommended Posts