diff --git a/debian/control b/debian/control
index 568725c895f6c7d775b36339a8eda4b2a1cf650e..0757464d155a7aeea2ec9241f6133e4264968f00 100644
--- a/debian/control
+++ b/debian/control
@@ -38,9 +38,8 @@ Build-Depends: debhelper-compat (= 13),
                liblz4-tool <!nocheck>,
                libbz2-dev <!stage1>,
                zlib1g-dev <!stage1> | libz-dev <!stage1>,
-               libcurl4-gnutls-dev <!stage1> | libcurl-dev <!stage1>,
-               libmicrohttpd-dev <!stage1>,
-               libgnutls28-dev <!stage1>,
+               libcurl4-openssl-dev <!stage1>,
+               libssl-dev <!stage1>,
                libpcre2-dev <!stage1>,
                libgcrypt20-dev,
                libkmod-dev (>= 15),
diff --git a/debian/rules b/debian/rules
index 2a82d816fb3308db2ac74e4a7fb7129760a350d9..87ad4aae5a27782ce1f38f70508dc920bb1a74cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -113,9 +113,8 @@ CONFFLAGS_deb += \
 	-Dlibiptc=true \
 	-Dlibcurl=true \
 	-Dimportd=true \
-	-Dmicrohttpd=true \
-	-Dgnutls=true \
 	-Dpcre2=true
+	-Dopenssl=true
 else
 CONFFLAGS_deb += \
 	-Daudit=false \
@@ -127,9 +126,8 @@ CONFFLAGS_deb += \
 	-Dlibiptc=false \
 	-Dlibcurl=false \
 	-Dimportd=false \
-	-Dmicrohttpd=false \
-	-Dgnutls=false \
 	-Dpcre2=false
+	-Dopenssl=false
 endif
 
 CONFFLAGS_udeb = \
@@ -153,8 +151,7 @@ CONFFLAGS_udeb = \
 	-Dmachined=false \
 	-Dlibcurl=false \
 	-Dimportd=false \
-	-Dmicrohttpd=false \
-	-Dgnutls=false \
+	-Dopenssl=false \
 	-Dhostnamed=false \
 	-Dtimedated=false \
 	-Dnetworkd=false \
@@ -314,4 +311,4 @@ ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
 endif
 
 %:
-	dh $@ --without autoreconf --buildsystem=meson
+	dh $@ --without autoreconf --buildsystem=meson -Nsystemd-journal-remote