-
Notifications
You must be signed in to change notification settings - Fork 23
Description
After install the certbot and certbot-dns-azure via pip3 i got this problem to create a new cert using a service principal
[root@localhost ~]# python3 -m venv ~/certbot-venv
[root@localhost ~]# source ~/certbot-venv/bin/activate
certbot-venv) [root@localhost ~]# pip3 install certbot certbot-dns-azure
certbot-venv) [root@localhost ~]# certbot certonly
--authenticator dns-azure
--preferred-challenges dns
--non-interactive
--agree-tos
--email mail@domain.com
--dns-azure-config ~/.secrets/certbot/azure.ini
-d '*.domain.com' -d domain.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for *.domain.com and domain.com
Encountered exception during recovery: TypeError: init() takes from 3 to 4 positional arguments but 5 were given
An unexpected error occurred:
TypeError: init() takes from 3 to 4 positional arguments but 5 were given
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
(certbot-venv) [root@localhost ~]#
The solution was downgrade the package azure-mgmt-dns to 8.2.0
certbot-venv) [root@localhost ~]# pip install azure-mgmt-dns==8.2.0
===============
All package version after new instalation.
(certbot-venv) [root@localhost ~]# pip3 list
Package Version
acme 3.3.0
azure-common 1.1.28
azure-core 1.35.0
azure-identity 1.23.1
azure-mgmt-core 1.6.0
azure-mgmt-dns 9.0.0 (downgraded to 8.2.0)
certbot 3.3.0
certbot-dns-azure 2.6.1
certifi 2025.8.3
cffi 1.17.1
charset-normalizer 3.4.2
ConfigArgParse 1.7.1
configobj 5.0.9
cryptography 45.0.5
distro 1.9.0
idna 3.10
importlib_metadata 8.7.0
isodate 0.7.2
josepy 1.15.0
msal 1.33.0
msal-extensions 1.3.1
parsedatetime 2.6
pip 25.2
pycparser 2.22
PyJWT 2.10.1
pyOpenSSL 25.1.0
pyRFC3339 2.0.1
pytz 2025.2
requests 2.32.4
setuptools 53.0.0
six 1.17.0
typing_extensions 4.14.1
urllib3 2.5.0
zipp 3.23.0
(certbot-venv) [root@localhost ~]# rpm -qa | grep python3
python3-pip-wheel-21.3.1-1.el9.noarch
python3-dbus-1.2.18-2.el9.0.1.x86_64
python3-gobject-base-noarch-3.40.1-6.el9.noarch
python3-gobject-base-3.40.1-6.el9.x86_64
python3-libcomps-0.1.18-1.el9.x86_64
libcap-ng-python3-0.8.2-7.el9.x86_64
python3-nftables-1.0.9-3.el9.x86_64
python3-six-1.15.0-9.el9.noarch
python3-dateutil-2.8.1-7.el9.noarch
python3-systemd-234-19.el9.x86_64
python3-gpg-1.15.1-6.el9.x86_64
python3-firewall-1.3.4-9.el9_5.noarch
python3-setuptools-wheel-53.0.0-13.el9_6.1.noarch
python3-libs-3.9.21-2.el9_6.1.x86_64
python3-3.9.21-2.el9_6.1.x86_64
python3-libdnf-0.69.0-13.el9.x86_64
python3-hawkey-0.69.0-13.el9.x86_64
python3-rpm-4.16.1.3-37.el9.x86_64
python3-dnf-4.14.0-25.el9.noarch
python3-dnf-plugins-core-4.3.0-20.el9.noarch
python3-libselinux-3.6-3.el9.x86_64