èµ°ã£ã
./letsencrypt-auto --help --debug
ã€ã³ã¹ããŒã«ããããšã§æå·åã§ããŸãã
ãã¹ãŠã®ããã±ãŒãžãæ£åžžã«ã€ã³ã¹ããŒã«ãããŸãããã次ã®ãšã©ãŒãçºçããŸãã
ä»®æ³ç°å¢ã®äœæ...
letsencryptãšä»®æ³ç°å¢ã®äŸåé¢ä¿ãæŽæ°ããŠããŸã......ã³ãã³ã "/root/.local/share/letsencrypt/bin/python2.7 -c" import setuptoolsãtokenize; file = '/ dev / shm / pip-build-OslHtf / cffi / setup.py'; execïŒcompileïŒgetattrïŒtokenizeã 'open'ãopenïŒïŒ file ïŒ.readïŒïŒãreplaceïŒ 'rn'ã ' n 'ïŒã file ã' exec 'ïŒïŒ "install --record /tmp/pip-lx9pFX-record/install-record.txt --single-version-externally-managed --compile --install-headers / root / .local / share /letsencrypt/include/site/python2.7/cffi "ã/ dev / shm / pip-build-OslHtf / cffiã®ãšã©ãŒã³ãŒã1ã§å€±æããŸãã
äœãæ¡ãïŒ ã¢ããŸã³Linuxã®ãµããŒãã¯å®éšçãªãã®ã§ããããã¹ãŠã®èªååããŒã«ãïŒãŸã ïŒäœ¿çšããã€ããã¯ãããŸããããå°ãªããšãæåã§èšŒææžãçæã§ããã°çŽ æŽããããšæããŸãã
ïŒ1458ããã
æåã«python27-virtualenvããã±ãŒãžãæåã§ã€ã³ã¹ããŒã«ãã次ã«RedHatããŒãã¹ãã©ãããã¹ãå®è¡ããããšã§ãAmazon Linux2015.03ã§å€æŽãããletsencrypt-autoã䜿çšããŠã¯ã©ã€ã¢ã³ããå®è¡ã§ããŸããã
ç§ã¯ãããããŸããããããŠããã¯åããŠããããã§ãã sudo yum installpython27-virtualenvããã³sudo./bootstrap/_rpm_common.shãå®è¡ããå¿ èŠããããŸã
@barshinoffãããïŒ1677ïŒä»ã®redhatãã¡ããªãŒãã£ã¹ããªãã¥ãŒã·ã§ã³ã§cffiäŸåé¢ä¿ãã³ã³ãã€ã«ãããšãã®ã¡ã¢ãªäžè¶³ãšã©ãŒïŒã«é¢é£ããŠãããã©ããç¥ãããã§ãã./letsencrypt-autoãamazonlinux2015.09ã®ã¯ãªãŒã³ã€ã³ã¹ããŒã«ã§æ©èœããããšã確èªããŸããä»ã«äœãå®è¡ãããŠããªãt2.microã€ã³ã¹ã¿ã³ã¹ã®.1ããã³2015.03.1ã ãããè©ŠããŠããã€ã³ã¹ã¿ã³ã¹ã¿ã€ããšAMIã¯äœã§ããïŒ '-v' ./letsencrypt-auto --help --debug -vã䜿çšããŠè©³çŽ°ã«å®è¡ãããšãäœãèµ·ãã£ãŠãããã«ã€ããŠããå€ãã®æ å ±ãåŸãããå¯èœæ§ããããŸãã
ããã«ã¡ã¯ãã¢ããã€ã¹ããããšãããããŸãã
ããã¯ã¡ã¢ãªã®åé¡ã§ã¯ãããŸãããä»ã«äœãå®è¡ãããŠããªãããšã確èªãã40GBã®ã¹ã¯ãããã©ã€ããæ¥ç¶ããããšã確èªããŸãã
ãã¹ãŠã®ããã±ãŒãžãæŽæ°ããã2015.09ãã£ã¹ããªãã¥ãŒã·ã§ã³ãå®è¡ããŠããŸãã
æåã«python27-virtualenvããã±ãŒãžãã€ã³ã¹ããŒã«ããŠããã @ kiwimancyã«ãã£ãŠææ¡ãããRedHatããŒãã¹ãã©ãããã¹ãå®è¡ãããšãæåã®ãšã©ãŒãçºçããŸããã
ç§ãä»åãåããšã©ãŒã¯æ¬¡ã®ãšããã§ãã
Updating letsencrypt and virtual environment dependencies.......
Running with virtualenv: /root/.local/share/letsencrypt/bin/letsencrypt
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from letsencrypt.cli import main
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/letsencrypt/cli.py", line 17, in <module>
import OpenSSL
ImportError: No module named OpenSSL
åã2015.09AmazonLinuxã§åããšã©ãŒãçºçããŸãã
以äžã¯è©³çŽ°ãã°ã§ãããããåé¡ã®ç¹å®ã«åœ¹ç«ã€ããšãé¡ã£ãŠããŸãã
$ ./letsencrypt-auto help --debug --verbose
Bootstrapping dependencies for Amazon Linux...
yum is /usr/bin/yum
Loaded plugins: priorities, update-motd, upgrade-helper
Package python26-2.6.9-1.80.amzn1.x86_64 already installed and latest version
Package python26-devel-2.6.9-1.80.amzn1.x86_64 already installed and latest version
Package python26-virtualenv-12.0.7-1.10.amzn1.noarch already installed and latest version
Nothing to do
Loaded plugins: priorities, update-motd, upgrade-helper
Package git-2.4.3-6.40.amzn1.x86_64 already installed and latest version
Package gcc-4.8.3-3.20.amzn1.noarch already installed and latest version
Package dialog-1.1-9.20080819.1.5.amzn1.x86_64 already installed and latest version
Package augeas-libs-1.0.0-5.7.amzn1.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.1k-10.87.amzn1.x86_64 already installed and latest version
Package libffi-devel-3.0.13-11.4.amzn1.x86_64 already installed and latest version
Package system-rpm-config-9.0.3-42.27.amzn1.noarch already installed and latest version
Package ca-certificates-2015.2.4-65.0.1.14.amzn1.noarch already installed and latest version
Nothing to do
Creating virtual environment...
Already using interpreter /usr/bin/python2.7
New python executable in /home/ec2-user/.local/share/letsencrypt/bin/python2.7
Also creating executable in /home/ec2-user/.local/share/letsencrypt/bin/python
Installing setuptools, pip...done.
Updating letsencrypt and virtual environment dependencies...
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting setuptools from https://pypi.python.org/packages/3.5/s/setuptools/setuptools-18.7.1-py2.py3-none-any.whl#md5=a793e7b7ad3a91ca796f2e3bbd4ac355
Using cached setuptools-18.7.1-py2.py3-none-any.whl
Installing collected packages: setuptools
Found existing installation: setuptools 12.0.5
Uninstalling setuptools-12.0.5:
Successfully uninstalled setuptools-12.0.5
Successfully installed setuptools-18.7.1
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.2-py2.py3-none-any.whl#md5=5ff9fec0be479e4e36df467556deed4d
Using cached pip-7.1.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 6.0.8
Uninstalling pip-6.0.8:
Successfully uninstalled pip-6.0.8
Successfully installed pip-7.1.2
Collecting letsencrypt
Using cached letsencrypt-0.1.0-py2-none-any.whl
Collecting letsencrypt-apache
Using cached letsencrypt_apache-0.1.0-py2-none-any.whl
Collecting ConfigArgParse from git+https://github.com/kuba/[email protected]#egg=ConfigArgParse (from -r ./py26reqs.txt (line 1))
Cloning https://github.com/kuba/ConfigArgParse.git (to python2.6-0.9.3) to /tmp/pip-build-3Vgs0V/ConfigArgParse
Collecting acme==0.1.0 (from letsencrypt)
Using cached acme-0.1.0-py2-none-any.whl
Requirement already up-to-date: setuptools in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Collecting python2-pythondialog>=3.2.2rc1 (from letsencrypt)
Using cached python2-pythondialog-3.3.0.tar.bz2
Collecting PyOpenSSL (from letsencrypt)
Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl
Collecting requests (from letsencrypt)
Using cached requests-2.8.1-py2.py3-none-any.whl
Collecting parsedatetime (from letsencrypt)
Using cached parsedatetime-1.5-py2-none-any.whl
Collecting configobj (from letsencrypt)
Using cached configobj-5.0.6.tar.gz
Collecting pytz (from letsencrypt)
Using cached pytz-2015.7-py2.py3-none-any.whl
Collecting psutil>=2.1.0 (from letsencrypt)
Using cached psutil-3.3.0.tar.gz
Collecting six (from letsencrypt)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting cryptography>=0.7 (from letsencrypt)
Using cached cryptography-1.1.1.tar.gz
Collecting zope.interface (from letsencrypt)
Using cached zope.interface-4.1.3.tar.gz
Collecting zope.component (from letsencrypt)
Using cached zope.component-4.2.2.tar.gz
Collecting mock (from letsencrypt)
Using cached mock-1.3.0-py2.py3-none-any.whl
Collecting pyrfc3339 (from letsencrypt)
Using cached pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas (from letsencrypt-apache)
Using cached python-augeas-0.5.0.tar.gz
Collecting pyasn1 (from acme==0.1.0->letsencrypt)
Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting ndg-httpsclient (from acme==0.1.0->letsencrypt)
Using cached ndg_httpsclient-0.4.0.tar.gz
Collecting werkzeug (from acme==0.1.0->letsencrypt)
Using cached Werkzeug-0.11.2-py2.py3-none-any.whl
Collecting idna>=2.0 (from cryptography>=0.7->letsencrypt)
Using cached idna-2.0-py2.py3-none-any.whl
Collecting enum34 (from cryptography>=0.7->letsencrypt)
Using cached enum34-1.1.1.tar.gz
Collecting ipaddress (from cryptography>=0.7->letsencrypt)
Using cached ipaddress-1.0.15-py27-none-any.whl
Collecting cffi>=1.1.0 (from cryptography>=0.7->letsencrypt)
Using cached cffi-1.3.1.tar.gz
Collecting zope.event (from zope.component->letsencrypt)
Using cached zope.event-4.1.0.tar.gz
Collecting funcsigs (from mock->letsencrypt)
Using cached funcsigs-0.4-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock->letsencrypt)
Using cached pbr-1.8.1-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.1.0->cryptography>=0.7->letsencrypt)
Using cached pycparser-2.14.tar.gz
Installing collected packages: pytz, requests, pyasn1, idna, six, enum34, ipaddress, pycparser, cffi, cryptography, PyOpenSSL, ndg-httpsclient, werkzeug, funcsigs, pbr, mock, pyrfc3339, acme, python2-pythondialog, parsedatetime, configobj, psutil, zope.interface, zope.event, zope.component, ConfigArgParse, letsencrypt, python-augeas, letsencrypt-apache
Running setup.py install for enum34
Running setup.py install for pycparser
Running setup.py install for cffi
Running setup.py install for cryptography
Running setup.py install for ndg-httpsclient
Running setup.py install for python2-pythondialog
Running setup.py install for configobj
Running setup.py install for psutil
Running setup.py install for zope.interface
Running setup.py install for zope.event
Running setup.py install for zope.component
Running setup.py install for ConfigArgParse
Running setup.py install for python-augeas
Successfully installed ConfigArgParse-0.9.3 PyOpenSSL acme-0.1.0 cffi configobj-5.0.6 cryptography enum34-1.1.1 funcsigs-0.4 idna-2.0 ipaddress-1.0.15 letsencrypt-0.1.0 letsencrypt-apache-0.1.0 mock-1.3.0 ndg-httpsclient-0.4.0 parsedatetime-1.5 pbr-1.8.1 psutil pyasn1-0.1.9 pycparser-2.14 pyrfc3339 python-augeas-0.5.0 python2-pythondialog-3.3.0 pytz-2015.7 requests-2.8.1 six-1.10.0 werkzeug zope.component-4.2.2 zope.event-4.1.0 zope.interface
Running with virtualenv: sudo /home/ec2-user/.local/share/letsencrypt/bin/letsencrypt help --debug --verbose
Traceback (most recent call last):
File "/home/ec2-user/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from letsencrypt.cli import main
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/letsencrypt/cli.py", line 17, in <module>
import OpenSSL
ImportError: No module named OpenSSL
https://github.com/letsencrypt/letsencrypt/blob/master/letsencrypt-auto#L181ã®åã«æåã§pip install pyOpenSSL
pip install cryptography
ãè¿œå ããŠãpyOpenSSLã解決ããããšããŸããããcffiããŒãžã§ã³ã§ã¹ã¿ãã¯ããŸããéäºææ§ãšãããããŸããã
ç§ã«ããšã©ãŒããããŸãïŒ
$ ./letsencrypt-auto --apache -d www.3chirurgen.de -d 3chirurgen.de -d incentergy.de -d www.incentergy.de -d shop.incentergy.de
Updating letsencrypt and virtual environment dependencies......Command "/home/ec2-user/.local/share/letsencrypt/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-oV91ZI/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GU4tNk-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/.local/share/letsencrypt/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-oV91ZI/cffi
$ uname -a
Linux ip-172-31-11-205 4.1.7-15.23.amzn1.x86_64 #1 SMP Mon Sep 14 23:20:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
@kiwimancyããã®è§£æ±ºçãæ©èœããŸããïŒ
sudo yum install python27-virtualenv
sudo ./bootstrap/_rpm_common.sh
# Output nothing to do
次ã®åé¡ïŒ
$ ./letsencrypt-auto --apache -d www.3chirurgen.de -d 3chirurgen.de -d incentergy.de -d www.incentergy.de -d shop.incentergy.de
Running with virtualenv: sudo /home/ec2-user/.local/share/letsencrypt/bin/letsencrypt --apache -d www.3chirurgen.de -d 3chirurgen.de -d incentergy.de -d www.incentergy.de -d shop.incentergy.de
Traceback (most recent call last):
File "/home/ec2-user/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from letsencrypt.cli import main
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/letsencrypt/cli.py", line 17, in <module>
import OpenSSL
ImportError: No module named OpenSSL
解決ïŒ
$ /home/ec2-user/.local/share/letsencrypt/bin/pip install pyopenssl
次ã®åé¡ïŒ
Complete output from command /home/ec2-user/.local/share/letsencrypt/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-5_HYBt/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BxpscI-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/.local/share/letsencrypt/include/site/python2.7/cffi:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/api.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/model.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/c
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/ec2-user/.local/share/letsencrypt/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-5_HYBt/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BxpscI-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/.local/share/letsencrypt/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-5_HYBt/cffi
解決ïŒ
sudo yum install python27-devel
次ã®åé¡ïŒ
apacheãã©ã°ã€ã³ãæ©èœããŠããŸããã æ¢åã®æ§æã«åé¡ãããå¯èœæ§ããããŸãã
ãšã©ãŒã¯æ¬¡ã®ãšããã§ããNoInstallationErrorïŒïŒ
2015-12-04 08:18:50,797:DEBUG:letsencrypt.cli:Root logging level set at 20
2015-12-04 08:18:50,798:INFO:letsencrypt.cli:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2015-12-04 08:18:50,807:DEBUG:letsencrypt.cli:letsencrypt version: 0.1.0
2015-12-04 08:18:50,807:DEBUG:letsencrypt.cli:Arguments: ['-v', '--debug', '--apache', '-d', 'www.3chirurgen.de', '-d', '3chirurgen.de', '-d', 'incentergy.de', '-d', 'www.incentergy.de', '-d', 'shop.incentergy.de']
2015-12-04 08:18:50,809:DEBUG:letsencrypt.cli:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2015-12-04 08:18:50,814:DEBUG:letsencrypt.cli:Requested authenticator apache and installer apache
2015-12-04 08:18:50,820:DEBUG:letsencrypt.plugins.disco:No installation (PluginEntryPoint#apache):
Traceback (most recent call last):
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/plugins/disco.py", line 103, in prepare
self._initialized.prepare()
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt_apache/configurator.py", line 142, in prepare
raise errors.NoInstallationError
NoInstallationError
2015-12-04 08:18:50,821:DEBUG:letsencrypt.display.ops:No candidate plugin
2015-12-04 08:18:50,821:DEBUG:letsencrypt.cli:Selected authenticator None and installer None
ããã«ã€ããŠã¯åŸã§æãäžããŸãã
./letsencrypt-auto -v
Updating letsencrypt and virtual environment dependencies...
Requirement already up-to-date: setuptools in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages
Requirement already up-to-date: pip in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages
Requirement already up-to-date: letsencrypt in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages
Requirement already up-to-date: letsencrypt-apache in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages
Requirement already up-to-date: zope.interface in /home/ec2-user/.local/share/letsencrypt/lib64/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: setuptools in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Requirement already up-to-date: python2-pythondialog>=3.2.2rc1 in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Collecting PyOpenSSL (from letsencrypt)
Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl
Requirement already up-to-date: requests in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Collecting cryptography>=0.7 (from letsencrypt)
Using cached cryptography-1.1.2.tar.gz
Requirement already up-to-date: parsedatetime in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Requirement already up-to-date: configobj in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Requirement already up-to-date: pytz in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Collecting psutil>=2.1.0 (from letsencrypt)
Using cached psutil-3.3.0.tar.gz
Requirement already up-to-date: six in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Requirement already up-to-date: acme==0.1.1 in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Requirement already up-to-date: zope.component in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Requirement already up-to-date: mock in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Requirement already up-to-date: ConfigArgParse in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt)
Collecting pyrfc3339 (from letsencrypt)
Using cached pyRFC3339-1.0-py2.py3-none-any.whl
Requirement already up-to-date: python-augeas in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from letsencrypt-apache)
Requirement already up-to-date: idna>=2.0 in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: pyasn1>=0.1.8 in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: enum34 in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: ipaddress in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from cryptography>=0.7->letsencrypt)
Collecting cffi>=1.1.0 (from cryptography>=0.7->letsencrypt)
Using cached cffi-1.4.2.tar.gz
Requirement already up-to-date: ndg-httpsclient in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from acme==0.1.1->letsencrypt)
Collecting werkzeug (from acme==0.1.1->letsencrypt)
Using cached Werkzeug-0.11.3-py2.py3-none-any.whl
Requirement already up-to-date: zope.event in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from zope.component->letsencrypt)
Requirement already up-to-date: funcsigs in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from mock->letsencrypt)
Requirement already up-to-date: pbr>=0.11 in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from mock->letsencrypt)
Requirement already up-to-date: pycparser in /home/ec2-user/.local/share/letsencrypt/lib/python2.7/dist-packages (from cffi>=1.1.0->cryptography>=0.7->letsencrypt)
Installing collected packages: cffi, cryptography, PyOpenSSL, psutil, pyrfc3339, werkzeug
Running setup.py install for cffi
Running setup.py install for cryptography
Running setup.py install for psutil
Successfully installed PyOpenSSL cffi cryptography psutil pyrfc3339 werkzeug
Requesting root privileges to run with virtualenv: sudo /home/ec2-user/.local/share/letsencrypt/bin/letsencrypt -v
Traceback (most recent call last):
File "/home/ec2-user/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from letsencrypt.cli import main
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/letsencrypt/cli.py", line 17, in <module>
import OpenSSL
ImportError: No module named OpenSSL
pip install pyopenssl
ã¯ããã解決ããŸããã
OKãç§ã¯ãã®åé¡ã®è§£æ±ºçãèŠã€ãããšæããŸãã
ããã¯ãã¹ãŠãrootãšããŠå®è¡ããããsudoãä»ããŠå®è¡ããããpipã€ã³ã¹ããŒã«ã«è€æ°ã®ããã±ãŒãžã®å Žæã䜿çšããããšã«ãªããŸãïŒlib / lib64ãsite-packages / dist-packagesã/ usrãš/ usr / localïŒã
ç§ã¯ãã®åæ§ã®åé¡ã«ééããŸããïŒ
http://stackoverflow.com/questions/33661818/python-virtualenv-importerror-with-celery-and-billiard
Amazon Linuxã«å梱ãããŠããpipãšvirtualenvã®ããŒãžã§ã³ã¯ãææ°ã®AMIã§ãã£ãŠãå€ããïŒããããïŒä»®æ³ç°å¢ã§ã®lib64 / dist-packagesã®åŠçæ¹æ³ã«ãã°ããããŸãã
pipãä»ããŠäž¡æ¹ã®ããã°ã©ã ãæŽæ°ããŠããä»®æ³ç°å¢ãåäœæãããšãrootãšããŠã»ããã¢ãããå®è¡ããå ŽåïŒsudoã䜿çšããªãå ŽåïŒã®åé¡ãä¿®æ£ãããããã§ãã ä»ã®ã¹ã¬ããã§æäŸãããŠãã解決çãšãvirtualenvãã©ã«ããŒããpipãå®è¡ããŠäŸåé¢ä¿ãåã€ã³ã¹ããŒã«ããããã®è§£æ±ºçã¯ãåå ã§ã¯ãªãçç¶ãä¿®æ£ããŠããŸãã
ããã§å ±åãããåæ§ã®åé¡ïŒ
https://community.letsencrypt.org/t/letsencrypt-auto-openssl-module-not-found-ec2/4356
äžèšã®eric-tuckerã®ãœãªã¥ãŒã·ã§ã³ã¯ç§ã«ã圹ç«ã¡ãŸããã ããããšãïŒ
Googleããæ¥ãŠãææ°ã®Amazon Linux2015.09.1ã®virtualenvã§ã³ã³ãã€ã«ããããã¹ãŠã®Pythonã¢ãžã¥ãŒã«ã§åæ§ã®åé¡ãçºçããŸããã
eric-tuckerã¯æ£ããã§ããvirtualenvãæåã§ã¢ããã°ã¬ãŒããããšãããã§åœ¹ç«ã¡ãŸãã
åå ã¯ç°å¢å€æ°PYTHON_INSTALL_LAYOUT=amzon
ã§ãããããã©ã«ãã§ã¯Amazon Linuxã«èšå®ãããŠããªãããšãããããŸãããããããã°ãåé¡ã«æ°ä»ãããšã¯ãããŸããã ãã ãããããèšå®ãããšãããã©ã«ãããŒãžã§ã³ã®virtualenvã§ã¯æ©èœããªããªããŸããããã¯ãããã±ãŒãžãlib64/python2.7/dist-packages
ã«ã€ã³ã¹ããŒã«ãããvirtualenvã®site.py
ã«ãã£ãŠè¿œå ãããªãããã§ãïŒå°ãªããšãã rpmããã±ãŒãžã lib/python2.7/dist-packages
ã®ã¿ãè¿œå ãããŸãïŒã
å°ãªããšãç§ã«ãšã£ãŠé£ããéšåã¯ãã©ã®ããã±ãŒãžããã®å€æ°ãå®çŸ©ããŠããããèŠã€ããããšã§ããã ããã¯ãyumã«ããã @Developmenttools ãã°ã«ãŒããå
·äœçã«ã¯system-rpm-config
ããã±ãŒãžã®ã€ã³ã¹ããŒã«ãåå ã§ããããšãå€æããŸããã ããã»ã©æçœã§ã¯ãããŸãã...
ã¯ãïŒ è§£æ±ºããŸããïŒ eric-tuckerããããšãããããŸãïŒ
次ã®ã³ãã³ããå®è¡ããŸããã
# pip install pip --upgrade
# pip install virtualenv --upgrade
# virtualenv -p /usr/bin/python27 venv27
# . venv27/bin/activate
# git clone https://github.com/letsencrypt/letsencrypt
# cd letsencrypt
# ./letsencrypt-auto certonly --debug --standalone -d <domain-name>
2017幎ã®@skatsumataãšcertbot-autoã«æŽæ°ããŸãã
# rm /root/.local/share/letsencrypt/ -Rf
# pip install pip --upgrade
# pip install virtualenv --upgrade
# virtualenv -p /usr/bin/python27 venv27
# . venv27/bin/activate
# ./certbot-auto renew --debug #(or whatever your relevant command is)
ãããæ©èœããããã«ã¯ã sudo yum install python27-devel
ãå®è¡ããã ãã§æžã¿ãŸãããããããšãããããŸãã
@zarmstrongã©ããããããšããããã¯ããŸããããŸãã ãšããã§ãèªåæŽæ°ããcronãèšå®ããããšæããŸãã ããªãã®ãœãªã¥ãŒã·ã§ã³ã§ãããã©ã®ããã«è¡ãã®ã§ããïŒ
ãããæ©èœãããã©ããã¯ããã¹ããããŠããŸããã ããããããªãã¯ãããè©Šãããšãã§ããŸãã
#!/bin/bash
date
cd /root
source venv27/bin/activate
./certbot-auto renew --debug
/etc/init.d/httpd reload
å¿ ãåºåãããçš®ã®ãã°ã«ãªãã€ã¬ã¯ããããããæ©èœããããšã確èªããŠãã ããã
ããã¯ã次ã®ãªãªãŒã¹ã§ïŒ4978ã§ä¿®æ£ãããã¯ãã§ãã
@bmwãããä¿®æ£ããããšã¯æããªãã 次ã®ããã«ããŠã³ããŒããããææ°ããŒãžã§ã³ã®certbotã䜿çšããAWSElastic Beanstalkç°å¢ã§ãããããšåãlib / lib64ã®åé¡ãçºçããŠããŸãã
wget https://dl.eff.org/certbot-auto; chmod a+x certbot-auto
# cat /etc/system-release
Amazon Linux AMI release 2017.09
[root@ip-172-31-10-255 venv]# /certbot/certbot-auto --debug renew
Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in <module>
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 10, in <module>
import josepy as jose
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/__init__.py", line 41, in <module>
from josepy.interfaces import JSONDeSerializable
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py", line 8, in <module>
from josepy import errors, util
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py", line 4, in <module>
import OpenSSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in <module>
from OpenSSL._util import (
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding
Pythonã®äŸåé¢ä¿ã«ã©ãã»ã©ã®åé¡ãããã®ãââãããã§ãªãã®ããç§ã¯å°æããŠããŸãã
ãã ããpipãä»ããŠcertbotãã€ã³ã¹ããŒã«ãããšãããŸããããšæããŸãã ãã®@utdrmacãè©ŠããŸãããïŒ ç§ã¯ãããç§ã®åé¡ã®å€ãã解決ããããšãç¥ã£ãŠããŸãã
pipãä»ããã€ã³ã¹ããŒã«ããªãã·ã§ã³ã§ããããšãç¥ããŸããã§ããã ç§ã¯beanstalkã§ã®certbotã®äœ¿çšã«é¢ããããã€ãã®ããã°æçš¿ããã©ããŒããŠããŠãäžèšã®ããã«ã¹ã¯ãªããããããããŠã³ããŒãããŸããã ããããããã°ã®æçš¿ãå€ããªã£ãŠããŸãã ä»ããpipã§ãã¹ãïŒ
# rm -rf /opt/eff.org/*
# pip install -U certbot
# certbot renew --debug
ããŸããã£ãããã§ãïŒ ã¹ã¯ãªããã調æŽããŠãçŽæ¥ããŠã³ããŒãããã®ã§ã¯ãªããã·ã¹ãã pipã䜿çšããŠcertbotãã€ã³ã¹ããŒã«ããŸãã ããããããã®ç¹ã§certbotsã®çµã¿èŸŒã¿ã€ã³ã¹ããŒã©ãŒ/ã¢ããããŒã¿ãŒã«åé¡ããããŸããïŒ
æ£çŽãªãšãããpipãä»ããã€ã³ã¹ããŒã«ããã¹ãŠã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§æšå¥šãããã¢ãããŒãã§ã¯ãªãçç±ã¯ããããŸããã
virtualenvãã»ããã¢ããããããšããååã®æéã§æšãã«å€±æãããã¡ã€ã«ã®ããŠã³ããŒãã®å ã®è§£æ±ºçã¯ãDIAFã«å¿ èŠã§ãã
ãšã©ãŒã¯ãPythonãã¹ãšdist-packages
ã®äœ¿çšã«ãããŸãã dist.pth
ãªã©ã®ãã¹æ§æã/opt/eff.org/certbot/venv/lib64/python2.7/site-packages/dist.pth
ã«è¿œå ã§ããŸãã ãã ãã pth
ãã¡ã€ã«ã¯ããµã€ããã£ã¬ã¯ããªïŒããšãã°ã site-packages
ïŒã«ããå Žåã«ã®ã¿åŠçãããæ°ããæå®ããããã¹ïŒã€ãŸããdist-packagesïŒã«ããpth
ãã¡ã€ã«ã¯åŠçãããŸããèªãŸãªãã 次ã®ããã«/opt/eff.org/certbot/venv/lib64/python2.7/site-packages/
ã«sitecustomize.pyãäœæããŸãã
import site
site.addsitedir('/opt/eff.org/certbot/venv/lib64/python2.7/dist-packages')
sitecustomize.py
ã¯ãdist-packagesããµã€ããã£ã¬ã¯ããªãšããŠèšå®ãã zope.interface-4.4.3-py2.7-nspkg.pth
ãæ£åžžã«èªã¿åããŸãã ããã«ããã from zope.interface import Interface
ãšã©ãŒImportError
ãåé¿ãããŸãã
ããã«ã /usr/local/bin/certbot-auto
ãvirtualenv venv
ãåäœæããããšãçºèŠããŸããã ããã«ãããåé¿ããããšããŠããã®ãšåãPythonãã¹ãšã©ãŒãçºçããŸãã äžèšãé©çšãã venv
ã§ã¢ã¯ãã£ãåã¹ã¯ãªãããæåã§èª¿éããããšããå§ãããŸãã äŸïŒ . /opt/eff.org/certbot/venv/bin/activate
ã
ã·ã¹ãã ã¬ãã«ã®Pythonããã±ãŒãžãããã·ã³ã°ããããšãåé¿ããããããã®ã¢ãããŒãã奜ã¿ãŸãã
ããã¯äžèšãšã¯ç°ãªãããšãèšã£ãŠããããã§ã¯ãããŸããããcertbot 0.21.1ã§ã®ç§ã«ãšã£ãŠã®è¿ éãªä¿®æ£ã¯ãæå·åããºããããã€ã³ãã£ã³ã°ãletsencryptã®ã«ã¹ã¿ã ããŒãžã§ã³ã®pythonãæ¢ããŠããå Žæã«å¹æçã«ã移åãããããšã§ããã
cd /opt/eff.org/certbot/venv/lib64/python2.7
mv site-packages site-packages.sav
ln -s dist-packages/ site-packages
site-packages / subdirã空ãªã®ã§ãããã¯ç§ã«ãšã£ãŠã¯ããŸããããŸãã ãããŠæ確ã«ããããã«ãããã¯Amazon Linuxã®æè¿ã®certbotããŒãžã§ã³ã§è¡šç€ºããã次ã®ãšã©ãŒã«å¯ŸåŠããŸããç§ã«ãšã£ãŠã¯certbot0.21.0ããã³0.21.1ã§ãã
<snip>
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding
@utdrmacãæžããçãã¯ãç§ãæçµçã«äœ¿çšãããã®ã§ããããããšããã·ã¥ãŒïŒ
ãããããšã©ãŒãçºçããŸããïŒ "The requested apache plugin does not appear to be installed"
ã ããç§ã¯ããïŒ sudo -H pip install certbot-apache
ç§ã¯åããšã©ãŒããããã©ããããããããã解決ããŸãã
python 2ãš3ã®2ã€ã®ããŒãžã§ã³ã®pythonãã€ã³ã¹ããŒã«ããŠããã®ã§ãcertbot / letencryptã§ã©ã¡ãã䜿çšããŠãããã確èªããå¿ èŠããããŸããã æå·åãã€ã³ããŒãããããšãããšãšã©ãŒãå ±åãããŸãã
ã³ãã³ãã©ã€ã³ã§
python
from cryptography.hazmat.bindings._constant_time import lib
ã€ã³ããŒããšã©ãŒããªãã®ã§ãpython3ã§ãåãããšãããŸãããã No module named '_cffi_backend
ãšã©ãŒãçºçããŸããã ã ããç§ã¯pip3ã§cffiã¢ãžã¥ãŒã«ãç°¡åã«ã€ã³ã¹ããŒã«ããŸããsudo -H pip3 install cffi
sudo -Hcuzã°ããŒãã«ããã±ãŒãžãšããŠå¿ èŠã§ãã
次ã«certbot help
ãå®è¡ããåŸã urllib3
ã®ã€ã³ããŒããšã©ãŒãçºçããŸããã ãããpip3ã§ã€ã³ã¹ããŒã«ãããšããã¹ãŠãæ£åžžã«æ©èœããŸãã
誰ããããã圹ç«ã€ããšãé¡ã£ãŠããŸã
AWS EC2ã€ã³ã¹ã¿ã³ã¹ã§ããã®åé¡ãçºçããŸãããã @ utdrmacã®ãœãªã¥ãŒã·ã§ã³ãrootãšããŠå®è¡ããããšã§ä¿®æ£ãããŸããã certbot0.22.0ã«ã¢ããã°ã¬ãŒãããŠããŸãã
解決çãããããšã@utdrmac ã ç§ã¯ãã®2æ¥éãéåžžã«å€ãã®ããšãè©Šã¿ãŠããŸããããäœãæ©èœããŸããã§ããã
ä»æ¥ãã®åé¡ã«ééããããã«@utdrmacãœãªã¥ãŒã·ã§ã³ãAmazon Linux AMI2017.09ãå®è¡ããŠããAWSEC2ã§æ©èœããªãããšãçºèŠããŸããã æåŸã®ã¹ãããã§çºçãããšã©ãŒã¯æ¬¡ã®ãšããã§ãã
$ sudo certbot renew --debug
/usr/lib64/python2.6/dist-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. The next version of cryptography will drop support for Python 2.6
DeprecationWarning
Traceback (most recent call last):
File "/usr/bin/certbot", line 7, in <module>
from certbot.main import main
File "/usr/lib/python2.6/dist-packages/certbot/main.py", line 11, in <module>
import zope.component
File "/usr/lib/python2.6/dist-packages/zope/component/__init__.py", line 28, in <module>
from zope.component.globalregistry import getGlobalSiteManager
File "/usr/lib/python2.6/dist-packages/zope/component/globalregistry.py", line 18, in <module>
from zope.interface.registry import Components
File "/usr/lib64/python2.6/dist-packages/zope/interface/registry.py", line 167
filtered_state = {k: v for k, v in reduction[2].items()
^
SyntaxError: invalid syntax
certbotãå®è¡ããããã«ãæ°ããPythonãã€ã³ã¹ããŒã«ããŠå©çšããããšã§ããã®ãœãªã¥ãŒã·ã§ã³ãæ¡åŒµããå¿ èŠããããŸããã
sudo rm -rf /opt/eff.org/*
sudo yum -y install python36 python36-pip python36-libs python36-tools python36-virtualenv
sudo /usr/bin/pip-3.6 install -U certbot
sudo /usr/bin/pip-3.6 install certbot-apache
sudo /usr/local/bin/certbot renew --debug
ãã®ææ¡ã®åã³ãã³ããåå¥ã«sudo
ããããšã«æ³šæããŠãã ãããããã¯ãã³ãã³ãããã¹ãŠãŸãšããããšãããšïŒ sudo su -
ã®ããã«ïŒãäžéšã®å€ãPythonèšå®ãç°å¢ãæ±æããåå ãšããŠãã®äžé£ã®æé ã倱æããããã§ãããšã«ãããcertbotã¯æçµçã«å€±æããŸãã
@wwkimballå ¬å¹³ãæãããã«ãç§ã®è§£æ±ºç/åé¡ã¯ElasticBeanstalkã«å¯Ÿãããã®ã§ããã ç§ãAMI2017.09ãå®è¡ããŠããããã§ãã®ã§ããªãããªããä»ã®äººãšéãã®ãããããŸããã
ç§ã¯åãåé¡ã«ééããŸããã ãããç§ã«ãšã£ãŠããã解決ãããã®ã§ãïŒ
/opt/eff.org/certbot/venv/local/bin/pipã€ã³ã¹ããŒã«æå·åã€ã³ã¿ãŒãã§ã€ã¹
@gmegidishã®ãœãªã¥ãŒã·ã§ã³ã¯ããã®åé¡ãä¿®æ£ããŠãããŸããã
@wwkimballã«ããhttps://github.com/certbot/certbot/issues/1680#issuecomment-374046383以å€ã¯äœãæ©èœããŸããã§ããã
解決ããŠãããŠããããšãïŒ ïŒ100ïŒ
FWIWãããã¯ç§ãAWSLinuxã€ã³ã¹ã¿ã³ã¹ã§äœæ¥ããããã«äžç·ã«æãããã®ã§ãã
#!/bin/bash -x
# If run in cron, add /usr/local to cron's sanitized PATH
export PATH=$PATH:/usr/local/sbin:/usr/local/bin
INSTALLED=/usr/local/bin
$INSTALLED/certbot-auto $@
if [ $? -ne 0 ]; then
# certbot-auto used venv to install modules, but something
# about the way it put things together put pieces in a subdir
# that python doesn't look in by default on AWS Linux. Fix it.
BASEDIR="/opt/eff.org/certbot/venv/lib64/python2.7"
cat << " EOM"
1. Getting rid of empty $BASEDIR/site-packages.
2. Create symlink "site-packages" to "dist-packages/".
EOM
if [ -d $BASEDIR ]; then
cd $BASEDIR
rm -rf site-packages
ln -s dist-packages/ site-packages
else
echo "ERROR: $BASEDIR doesn't exist, python version changed?"
fi
$INSTALLED/certbot-auto $@
fi
ãã¹ä»¥å€ã®å Žæã«certbot-auto
ã¹ã¯ãªãããã€ã³ã¹ããŒã«ãããå Žåã«åããŠã INSTALLED
å€æ°ããã®ãŸãŸã«ããŠããããšã«ããŸããã ç§ã¯ãããrun_certbot.shãšåŒã³ãcertbot-autoã«æž¡ãããåŒæ°ã䜿çšããŠåŒã³åºããŸãã
run_certbot.sh renew --debug
@mrballcbããããšãïŒ å®ç§ã«åäœããŸãã
sudo pip3 install cryptography
sudo pip3 install interface
ç§ã®ããã«åãã
./certbot-auto --no-bootstrap
ããã¯ç§ã®ããã«åãã
pipã¡ãœããïŒpipãå«ãpython36ïŒã䜿çšããŠãAmazon Linux1ã«certbotãæ£åžžã«ã€ã³ã¹ããŒã«ããŠå®è¡ããããšãã§ããŸããã yumã¡ãœããã§ã蚺æèœåãè¶ ãã以äžã®ãšã©ãŒãçºçããŸããã
Complete!
Creating virtual environment...
Traceback (most recent call last):
File "<stdin>", line 27, in <module>
File "<stdin>", line 19, in create_venv
File "/usr/lib64/python2.7/subprocess.py", line 185, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
@ micharu123æçš¿ããããšãããããŸããããªãã®è§£æ±ºçã¯ç§ã®ããã«åãåé¡ãä¿®æ£ããŸããã 也æ¯
ããã§èª¬æããã®ãšåãåé¡ãããã€ããããŸããã解決çã¯ããcertbot-autoãå®è¡å¯èœãã¡ã€ã«ã/ usr / local / bin /ã«ç§»åããããšã§ããã ããã«ãããAWSãµãŒããŒäžã®ãã¹ãŠã®ãšã©ãŒãå³åº§ã«ä¿®æ£ãããŸããã
æãåèã«ãªãã³ã¡ã³ã
pipãä»ããã€ã³ã¹ããŒã«ããªãã·ã§ã³ã§ããããšãç¥ããŸããã§ããã ç§ã¯beanstalkã§ã®certbotã®äœ¿çšã«é¢ããããã€ãã®ããã°æçš¿ããã©ããŒããŠããŠãäžèšã®ããã«ã¹ã¯ãªããããããããŠã³ããŒãããŸããã ããããããã°ã®æçš¿ãå€ããªã£ãŠããŸãã ä»ããpipã§ãã¹ãïŒ
ããŸããã£ãããã§ãïŒ ã¹ã¯ãªããã調æŽããŠãçŽæ¥ããŠã³ããŒãããã®ã§ã¯ãªããã·ã¹ãã pipã䜿çšããŠcertbotãã€ã³ã¹ããŒã«ããŸãã ããããããã®ç¹ã§certbotsã®çµã¿èŸŒã¿ã€ã³ã¹ããŒã©ãŒ/ã¢ããããŒã¿ãŒã«åé¡ããããŸããïŒ