@Patches, Just a correction, instead of:
source ~/.local/share/letsencrypt/venv/bin/activate
@kiyokocrypto should use:
source ~/.local/share/letsencrypt/bin/activate
Iāve just installed it on a clean Debian Stretch and the venv dir is not created. So, using your method (changing the dir) I was able to install the dns-nsone plugin.
Before the installation:
[stretch9][root:certbot]# ./certbot-auto plugins
Saving debug log to /var/log/letsencrypt/letsencrypt.log
* apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator
* standalone
Description: Spin up a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = certbot.plugins.standalone:Authenticator
* webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
Installing dns-nsone plugin (in my case as root):
[stretch9][root:certbot]# source ~/.local/share/letsencrypt/bin/activate
(letsencrypt) [stretch9][root:certbot]# pip install certbot-dns-nsone
Collecting certbot-dns-nsone
Using cached certbot_dns_nsone-0.17.0-py2.py3-none-any.whl
Requirement already satisfied: zope.interface in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot-dns-nsone)
Requirement already satisfied: setuptools>=1.0 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot-dns-nsone)
Requirement already satisfied: certbot==0.17.0 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot-dns-nsone)
Collecting dns-lexicon (from certbot-dns-nsone)
Requirement already satisfied: mock in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot-dns-nsone)
Requirement already satisfied: acme==0.17.0 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot-dns-nsone)
Requirement already satisfied: pyrfc3339 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: zope.component in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: pytz in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: ConfigArgParse>=0.9.3 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: configobj in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: six in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: cryptography>=1.2 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: PyOpenSSL in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: parsedatetime>=1.3 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: requests in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from dns-lexicon->certbot-dns-nsone)
Collecting future (from dns-lexicon->certbot-dns-nsone)
Collecting tldextract (from dns-lexicon->certbot-dns-nsone)
Using cached tldextract-2.1.0-py2.py3-none-any.whl
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from mock->certbot-dns-nsone)
Requirement already satisfied: pbr>=0.11 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from mock->certbot-dns-nsone)
Requirement already satisfied: zope.event in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from zope.component->certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: ipaddress in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=1.2->certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: cffi>=1.7 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=1.2->certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: idna>=2.1 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=1.2->certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: asn1crypto>=0.21.0 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=1.2->certbot==0.17.0->certbot-dns-nsone)
Requirement already satisfied: enum34 in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=1.2->certbot==0.17.0->certbot-dns-nsone)
Collecting requests-file>=1.4 (from tldextract->dns-lexicon->certbot-dns-nsone)
Requirement already satisfied: pycparser in /root/.local/share/letsencrypt/lib/python2.7/site-packages (from cffi>=1.7->cryptography>=1.2->certbot==0.17.0->certbot-dns-nsone)
Installing collected packages: future, requests-file, tldextract, dns-lexicon, certbot-dns-nsone
Successfully installed certbot-dns-nsone-0.17.0 dns-lexicon-2.1.10 future-0.16.0 requests-file-1.4.2 tldextract-2.1.0
(letsencrypt) [stretch9][root:certbot]#
After the installation certbot-auto shows the new installed plugin:
(letsencrypt) [stretch9][root:certbot]# ./certbot-auto plugins
Saving debug log to /var/log/letsencrypt/letsencrypt.log
* apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator
* dns-nsone
Description: Obtain certificates using a DNS TXT record (if you are using NS1 for DNS).
Interfaces: IAuthenticator, IPlugin
Entry point: dns-nsone = certbot_dns_nsone.dns_nsone:Authenticator
* standalone
Description: Spin up a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = certbot.plugins.standalone:Authenticator
* webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
(letsencrypt) [stretch9][root:certbot]#
certbot-auto should provide a better way to install the plugins.
Cheers,
sahsanu