ΠΡΠΈΠ²Π΅Ρ Π²ΡΠ΅ΠΌ, Certbot Π² Ubuntu 14.04 ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅Ρ ΡΡΠ°ΡΡΡ Π²Π΅ΡΡΠΈΡ Pip (8.0.3), Π΄Π°ΠΆΠ΅ Π΅ΡΠ»ΠΈ Π΄ΠΎΡΡΡΠΏΠ½Π° ΡΠ°ΠΌΠ°Ρ Π½ΠΎΠ²Π°Ρ Π²Π΅ΡΡΠΈΡ Pip (9.0.1). Π― Π½Π΅ ΠΌΠΎΠ³Ρ ΡΡΠΏΠ΅ΡΠ½ΠΎ Π·Π°ΠΏΡΡΡΠΈΡΡ ΠΊΠΎΠΌΠ°Π½Π΄Ρ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΡ $certbot-auto
, ΠΏΠΎΡΠΎΠΌΡ ΡΡΠΎ ΠΎΠ½Π° Π²ΡΠ΄Π°Π΅Ρ ΠΏΡΠ΅Π΄ΡΠΏΡΠ΅ΠΆΠ΄Π΅Π½ΠΈΠ΅ InsecurePlatformWarning
. ΠΠΎΠ³Ρ Π»ΠΈ Ρ ΠΈΡΠΏΡΠ°Π²ΠΈΡΡ ΡΡΠΎ? ΠΠΈΠΆΠ΅ Ρ Π²ΡΡΠ°Π²ΠΈΠ» Π²Π΅ΡΡ Π²ΡΠ²ΠΎΠ΄:
Command "/home/wolthuis/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Txn1F9/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-igOc6P-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/wolthuis/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-Txn1F9/cryptography
/home/wolthuis/.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 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
=====================================================
Certbot has problem setting up the virtual environment.
Based on your pip output, the problem can likely be fixed by
increasing the available memory.
Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .
ΠΡΠΎ ΠΏΠΎΡ ΠΎΠΆΠ΅ Π½Π° Π΄ΡΠ±Π»ΠΈΠΊΠ°Ρ # 2804 (ΠΈΠ»ΠΈ # 1081). ΠΠΎΡΠΎΡΠ΅ Π³ΠΎΠ²ΠΎΡΡ, ΠΎΡΠ²ΠΎΠ±ΠΎΠΆΠ΄Π΅Π½ΠΈΠ΅ ΠΏΠ°ΠΌΡΡΠΈ ΠΏΡΡΠ΅ΠΌ (Π²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ) ΠΎΡΡΠ°Π½ΠΎΠ²ΠΊΠΈ Π΄ΡΡΠ³ΠΈΡ Π·Π°ΠΏΡΡΠ΅Π½Π½ΡΡ ΠΏΡΠΎΡΠ΅ΡΡΠΎΠ² ΠΈΠ»ΠΈ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΡ ΡΠ°ΠΉΠ»Π° ΠΏΠΎΠ΄ΠΊΠ°ΡΠΊΠΈ Π΄ΠΎΠ»ΠΆΠ½ΠΎ ΡΠ΅ΡΠΈΡΡ ΠΏΡΠΎΠ±Π»Π΅ΠΌΡ.
ΡΡΠΎ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΈΠ· ΠΎΡΠΈΡΠΈΠ°Π»ΡΠ½ΠΎΠ³ΠΎ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°
ΡΠΎΠ·Π΄Π°Π½ΠΈΠ΅ Π²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠ³ΠΎ ΡΠ°ΠΉΠ»Π° ΠΏΠΎΠ΄ΠΊΠ°ΡΠΊΠΈ:
user<strong i="7">@webserver</strong>:~$ sudo fallocate -l 1G /tmp/swapfile
user<strong i="10">@webserver</strong>:~$ sudo chmod 600 /tmp/swapfile
user<strong i="13">@webserver</strong>:~$ sudo mkswap /tmp/swapfile
user<strong i="16">@webserver</strong>:~$ sudo swapon /tmp/swapfile
ΡΠ΄Π΅Π»Π°ΠΉ ΡΠ²ΠΎΠ΅ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠ΅
ΠΡΠΊΠ»ΡΡΠΈΡΠ΅ ΠΈ ΡΠ΄Π°Π»ΠΈΡΠ΅ ΡΠ°ΠΉΠ» ΠΏΠΎΠ΄ΠΊΠ°ΡΠΊΠΈ ΠΏΠΎΡΠ»Π΅ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ Π²ΠΈΡΡΡΠ°Π»ΡΠ½ΠΎΠΉ ΡΡΠ΅Π΄Ρ:
user<strong i="21">@webserver</strong>:~$ sudo swapoff /tmp/swapfile
user<strong i="24">@webserver</strong>:~$ sudo rm /tmp/swapfile
ΠΡΠΎ Π½Π΅ ΡΠ΅ΡΠΈΠ»ΠΎ ΠΏΡΠΎΠ±Π»Π΅ΠΌΡ Π΄Π»Ρ ΠΌΠ΅Π½Ρ. Π ΠΈΡΠΎΠ³Π΅ ΠΌΠ½Π΅ ΠΏΡΠΈΡΠ»ΠΎΡΡ Π·Π°ΠΏΡΡΠΊΠ°ΡΡ ./certbot-auto certonly --debug
Π²ΠΌΠ΅ΡΡΠΎ ./certbot-auto certonly --no-bootstrap