certbot-dns-cpanel icon indicating copy to clipboard operation
certbot-dns-cpanel copied to clipboard

Deprecated parameter names

Open mcfisch opened this issue 4 years ago • 2 comments

When I try using the plugin as it is included with the linuxserver/swag docker container I'm getting a warning message saying the plugin name format is considered 'legacy' now:

root@47ec7d874239:/# certbot certonly --authenticator certbot-dns-cpanel:cpanel --certbot-dns-cpanel:cpanel-credentials
/config/dns-conf/cpanel.ini -d 'my-domain.com' -d '*.my-domain.com' -v
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugin legacy name certbot-dns-cpanel:cpanel may be removed in a future version. Please use cpanel instead.
Plugins selected: Authenticator certbot-dns-cpanel:cpanel, Installer None
Requesting a certificate for my-domain.com and *.my-domain.com
Performing the following challenges:
...

While debugging the plugin for a different issue I've also stumbled upon this and was able to get around it by using the following command instead with respective changes to the config as well.

Command:

certbot certonly --authenticator cpanel --cpanel-credentials /config/dns-conf/cpanel.ini -d 'my-domain.com' -d '*.my-domain.com'

Config:

cpanel_url = https://my-domain.com:2083
cpanel_username = my_user
cpanel_password = my_pw

However, this for now is more of a cosmetic problem than an actual issue - but who knows when the old format is going to get removed from the bot?...

mcfisch avatar Jul 20 '21 19:07 mcfisch

Thank you for bringing this to my attention; I like the new style a lot more. It's much more readable.

It looks like there should be no code change required, I will update the readme when I will have the time to test this properly.

badjware avatar Aug 13 '21 19:08 badjware

As of Certbot 2.x, the legacy plugin name is not supported.

sevaa avatar Jan 05 '23 14:01 sevaa