반응형

OS: Ubuntu 14.04 (amd64)

python version: 2.7.6


파이썬에서 firebase에 접근하는 코드를 테스트하던 중에 아래와 같이 경고 메세지가 길게 출력이 되면서 어쨌든 실행은 정상적으로 되었다:

usera@usera-Linux:~/git/firebase_test$ python test2.py 

/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

  SNIMissingWarning

/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

  InsecurePlatformWarning

{요청했던 데이터}

usera@usera-Linux:~/git/firebase_test$ 


SSL 관련 라이브러리가 없어서 그런가 해서 pip install pyopenssl 설치를 시도해 보니 이미 설치되어 있었다.


인터넷을 뒤져 보니 사용하는 라이브러리의 버전이 낮아서 그럴 수도 있다는 댓글이 있어서 pyopenssl을 업그레이드 했더니 그 뒤로 경고 메세지가 뜨지 않고 문제가 해결되었다.


$ pip install pyopenssl --upgrade





반응형
블로그 이미지

Bryan_

,