diff -pruN 2.5.8-1/debian/changelog 2.5.8-1ubuntu1/debian/changelog
--- 2.5.8-1/debian/changelog	2022-01-28 08:41:19.000000000 +0000
+++ 2.5.8-1ubuntu1/debian/changelog	2022-03-11 14:29:07.000000000 +0000
@@ -1,3 +1,12 @@
+php-dapphp-radius (2.5.8-1ubuntu1) jammy; urgency=medium
+
+  * Enable OpenSSL legacy providers during tests. (LP: #1964514)
+    - d/rules: enable legacy providers in dh_auto_test.
+    - d/t/control: enable legacy providers for dep8 tests.
+    - d/t/openssl.conf: add configuration to enable legacy providers.
+
+ -- Athos Ribeiro <athos.ribeiro@canonical.com>  Fri, 11 Mar 2022 11:29:07 -0300
+
 php-dapphp-radius (2.5.8-1) unstable; urgency=medium
 
   * Fixed upstream URL in d/rules.
diff -pruN 2.5.8-1/debian/control 2.5.8-1ubuntu1/debian/control
--- 2.5.8-1/debian/control	2022-01-28 08:41:19.000000000 +0000
+++ 2.5.8-1ubuntu1/debian/control	2022-03-11 14:29:07.000000000 +0000
@@ -1,7 +1,8 @@
 Source: php-dapphp-radius
 Section: php
 Priority: optional
-Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
 Uploaders:
  Thomas Goirand <zigo@debian.org>,
 Build-Depends:
diff -pruN 2.5.8-1/debian/NEWS 2.5.8-1ubuntu1/debian/NEWS
--- 2.5.8-1/debian/NEWS	1970-01-01 00:00:00.000000000 +0000
+++ 2.5.8-1ubuntu1/debian/NEWS	2022-03-11 14:29:07.000000000 +0000
@@ -0,0 +1,9 @@
+php-dapphp-radius (2.5.8-1ubuntu1) jammy; urgency=medium
+
+  * If using RADIUS auth with the MSCHAP protocol and OpenSSL 3, you will need
+    to enable the OpenSSL legacy provider. This happens because MSCHAP relies
+    on DES, which has been relegated to the legacy provider in OpenSSL 3.
+    See https://wiki.openssl.org/index.php/OpenSSL_3.0#Providers for further
+    informarion.
+
+ -- Athos Ribeiro <athos.ribeiro@canonical.com>  Fri, 11 Mar 2022 11:59:13 -0300
diff -pruN 2.5.8-1/debian/rules 2.5.8-1ubuntu1/debian/rules
--- 2.5.8-1/debian/rules	2022-01-28 08:41:19.000000000 +0000
+++ 2.5.8-1ubuntu1/debian/rules	2022-03-11 14:29:07.000000000 +0000
@@ -18,4 +18,6 @@ override_dh_auto_build:
 	ln -s ../src Dapphp/Radius
 
 override_dh_auto_test:
-	phpunit --include-path lib
+	# Load OpenSSL legacy providers. The DES algorythm is needed in the MSCHAP tests
+	# https://wiki.openssl.org/index.php/OpenSSL_3.0#Providers
+	OPENSSL_CONF=debian/tests/openssl.conf phpunit --include-path lib
diff -pruN 2.5.8-1/debian/tests/control 2.5.8-1ubuntu1/debian/tests/control
--- 2.5.8-1/debian/tests/control	2022-01-28 08:41:19.000000000 +0000
+++ 2.5.8-1ubuntu1/debian/tests/control	2022-03-11 14:29:07.000000000 +0000
@@ -1,3 +1,3 @@
-Test-Command: mkdir -p vendor && cp debian/autoload.php vendor && phpunit
+Test-Command: mkdir -p vendor && cp debian/autoload.php vendor && OPENSSL_CONF=debian/tests/openssl.conf phpunit
 Restrictions: rw-build-tree
 Depends: phpunit, @
diff -pruN 2.5.8-1/debian/tests/openssl.conf 2.5.8-1ubuntu1/debian/tests/openssl.conf
--- 2.5.8-1/debian/tests/openssl.conf	1970-01-01 00:00:00.000000000 +0000
+++ 2.5.8-1ubuntu1/debian/tests/openssl.conf	2022-03-11 14:29:07.000000000 +0000
@@ -0,0 +1,16 @@
+# Load OpenSSL legacy providers. The DES algorythm is needed in the MSCHAP tests
+# https://wiki.openssl.org/index.php/OpenSSL_3.0#Providers
+openssl_conf = openssl_init
+
+[openssl_init]
+providers = provider_sect
+
+[provider_sect]
+default = default_sect
+legacy = legacy_sect
+
+[default_sect]
+activate = 1
+
+[legacy_sect]
+activate = 1
