better TLS/SSL certificate management
Posted: Sat Jan 20, 2018 4:40 am
forum.asustor.com
https://forum.asustor.com/
No problem, hope it works for you. The hardest thing might be getting pip to install cryptography and certbot without an error because it compiles code as part of the install. From memory I think it basically needs gcc and some other bits installing first. Once that hurdle is overcome it should be fine.Davidsheldon wrote:Awesome, Thanks for sharing
Nice. I need to try this. It seems like there is missing explanation of where to place scripts and how to set paths in the scripts.
I didn't include certbot path specifics in the README.md because I had a suspicion (rightly or wrongly) that certbot / letsencrpyt paths might be variable due to supported number of HDDs and the Asustor Linux "special" file system layout differing between the various Asustor NAS box models.core wrote:Nice. I need to try this. It seems like there is missing explanation of where to place scripts and how to set paths in the scripts.
Code: Select all
/volume0/usr/builtin/etc/letsencrypt
I'm late to the party, but could you please elaborate a bit on this?joe wrote:From memory I think it basically needs gcc and some other bits installing first. Once that hurdle is overcome it should be fine.
admin@NYNAS:/volume1/home/admin $ pip install cryptography --upgrade
Requirement already up-to-date: cryptography in /volume1/.@plugins/AppCentral/python/lib/python2.7/site-packages
Cleaning up...
(Newbie here, with some linux experience. I start to remember why I never felt too comfortable with the system...)admin@NYNAS:/volume1/home/admin $ pip install certbot
Downloading/unpacking certbot
Downloading certbot-1.9.0.tar.gz (382kB): 382kB downloaded
Running setup.py egg_info for package certbot
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
Downloading/unpacking acme>=1.8.0 (from certbot)
Downloading acme-1.9.0.tar.gz (91kB): 91kB downloaded
Running setup.py egg_info for package acme
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
Downloading/unpacking ConfigArgParse>=0.9.3 (from certbot)
Downloading ConfigArgParse-1.2.3.tar.gz (42kB): 42kB downloaded
Running setup.py egg_info for package ConfigArgParse
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
Downloading/unpacking configobj (from certbot)
Downloading configobj-5.0.6.tar.gz
Running setup.py egg_info for package configobj
Requirement already satisfied (use --upgrade to upgrade): cryptography>=1.2.3 in /volume1/.@plugins/AppCentral/python/lib/python2.7/site-packages (from certbot)
Downloading/unpacking distro>=1.0.1 (from certbot)
Downloading distro-1.5.0.tar.gz (54kB): 54kB downloaded
Running setup.py egg_info for package distro
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
warning: no files found matching 'CHANGES'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
Downloading/unpacking josepy>=1.1.0 (from certbot)
Downloading josepy-1.5.0.tar.gz (53kB): 53kB downloaded
Running setup.py egg_info for package josepy
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
Downloading/unpacking parsedatetime>=1.3 (from certbot)
Downloading parsedatetime-2.6.tar.gz (60kB): 60kB downloaded
Running setup.py egg_info for package parsedatetime
no previously-included directories found matching '.DS_Store'
Downloading/unpacking pyrfc3339 (from certbot)
Downloading pyRFC3339-1.1.tar.gz
Running setup.py egg_info for package pyrfc3339
Downloading/unpacking pytz (from certbot)
Downloading pytz-2020.4.tar.gz (310kB): 310kB downloaded
Running setup.py egg_info for package pytz
Requirement already satisfied (use --upgrade to upgrade): setuptools in /volume1/.@plugins/AppCentral/python/lib/python2.7/site-packages/setuptools-2.0.1-py2.7.egg (from certbot)
Downloading/unpacking zope.component (from certbot)
Downloading zope.component-4.6.2.tar.gz (90kB): 90kB downloaded
Running setup.py egg_info for package zope.component
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Downloading/unpacking zope.interface (from certbot)
Downloading zope.interface-5.2.0.tar.gz (227kB): 227kB downloaded
Running setup.py egg_info for package zope.interface
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
warning: no previously-included files matching 'appveyor.yml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'benchmarks'
Downloading/unpacking mock (from certbot)
Downloading mock-4.0.2.tar.gz (71kB): 71kB downloaded
Running setup.py egg_info for package mock
Downloading/unpacking PyOpenSSL>=0.15.1 (from acme>=1.8.0->certbot)
Downloading pyOpenSSL-19.1.0.tar.gz (160kB): 160kB downloaded
Running setup.py egg_info for package PyOpenSSL
warning: no previously-included files found matching 'leakcheck'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '*.py' found under directory 'leakcheck'
warning: no previously-included files matching '*.pem' found under directory 'leakcheck'
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching '.travis'
Downloading/unpacking requests[security]>=2.6.0 (from acme>=1.8.0->certbot)
Downloading requests-2.25.0.tar.gz (101kB): 101kB downloaded
Running setup.py egg_info for package requests
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
Installing extra requirements: 'security'
Downloading/unpacking requests-toolbelt>=0.3.0 (from acme>=1.8.0->certbot)
Downloading requests-toolbelt-0.9.1.tar.gz (207kB): 207kB downloaded
Running setup.py egg_info for package requests-toolbelt
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
Downloading/unpacking six>=1.9.0 (from acme>=1.8.0->certbot)
Downloading six-1.15.0.tar.gz
Running setup.py egg_info for package six
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
no previously-included directories found matching 'documentation/_build'
Downloading/unpacking zope.deferredimport>=4.2.1 (from zope.component->certbot)
Downloading zope.deferredimport-4.3.1.tar.gz
Running setup.py egg_info for package zope.deferredimport
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking zope.deprecation>=4.3.0 (from zope.component->certbot)
Downloading zope.deprecation-4.4.0.tar.gz
Running setup.py egg_info for package zope.deprecation
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking zope.event (from zope.component->certbot)
Downloading zope.event-4.5.0.tar.gz
Running setup.py egg_info for package zope.event
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.class' found anywhere in distribution
warning: no previously-included files matching '*' found under directory 'docs/_build'
Downloading/unpacking zope.hookable>=4.2.0 (from zope.component->certbot)
Downloading zope.hookable-5.0.1.tar.gz
Running setup.py egg_info for package zope.hookable
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking chardet>=3.0.2,<4 (from requests[security]>=2.6.0->acme>=1.8.0->certbot)
Downloading chardet-3.0.4.tar.gz (1.9MB): 1.9MB downloaded
Running setup.py egg_info for package chardet
warning: no files found matching 'requirements.txt'
Downloading/unpacking idna>=2.5,<3 (from requests[security]>=2.6.0->acme>=1.8.0->certbot)
Downloading idna-2.10.tar.gz (175kB): 175kB downloaded
Running setup.py egg_info for package idna
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no previously-included files matching '*.pyc' found under directory 'tools'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
Downloading/unpacking urllib3>=1.21.1,<1.27 (from requests[security]>=2.6.0->acme>=1.8.0->certbot)
Downloading urllib3-1.26.2.tar.gz (286kB): 286kB downloaded
Running setup.py egg_info for package urllib3
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
error in urllib3 setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
Complete output from command python setup.py egg_info:
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/local/AppCentral/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
error in urllib3 setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_admin/urllib3
Storing complete log in /home/admin/.pip/pip.log
admin@NYNAS:/volume1/home/admin $