如何在不同的服务器上安装Lets-encrypt同一域名

时间:2016-08-12 19:39:48

标签: amazon-web-services ssl encryption amazon-ec2

我正在使用aws ec2实例。我有一个使用Lets-encrypt安装了ssl的实例,该实例已被销毁。我启动了一个新的实例,指向它的同一个域,当我尝试使用let encrypt安装ssl时,我收到此错误

   ----------------------------------------
Command "/home/ubuntu/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-rEhjk0/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-AX0i_f-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-rEhjk0/cryptography
/home/ubuntu/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
You are using pip version 8.0.3, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

我尝试过没有成功

pip install --upgrade pip
pip install requests[security]
pip install pyopenssl ndg-httpsclient pyasn1

0 个答案:

没有答案