Hello,
I am writing a dns plugin to be able to perform the dns challenge with njalla. I have based this plugin on other existing plugins and am using lexicon for this. Now when I publish the plugin to PyPi and download it using pip3 install certbot-dns-njalla
I am unable to get it to work with certbot. I have installed certbot from the debian / raspbian repo, so I'm on version 0.31.0
When I run certbot plugins
, it lists my plugin without issue:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* certbot-dns-njalla:dns-njalla
Description: Obtain certificates using a DNS TXT record (if you are using Njalla
for DNS).
Interfaces: IAuthenticator, IPlugin
Entry point: dns-njalla = certbot_dns_njalla.dns_njalla: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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
However when I then try to run the certbot with this plugin (without the required arguments at first to test whether its working) with sudo certbot certonly -a certbot-dns-njalla:dns-njalla --dry-run
it no longer seems to find the plugin:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Could not choose appropriate plugin: The requested certbot-dns-njalla:dns-njalla plugin does not appear to be installed
The requested certbot-dns-njalla:dns-njalla plugin does not appear to be installed
The debug log shows the following entry which I think might be a hing:
2020-10-03 12:08:22,707:DEBUG:certbot.main:Discovered plugins:
PluginsRegistry(
PluginEntryPoint#manual,
PluginEntryPoint#null,
PluginEntryPoint#standalone,
PluginEntryPoint#webroot
)
I'm guessing the PluginEntryPoint#null
should be my plugin? But why is the entrypoint null
?
All source code can be found at https://github.com/chaptergy/certbot-dns-njalla