diff --git a/centos/Dockerfile b/centos/Dockerfile
index a493a6080715651392bbca55eb6de4b493e83a0c..fb92bc7de59597aba57d297fa51178fcb813345f 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -588,6 +588,7 @@ RUN version=3.10.2 && \
     curl -sSLO https://www.python.org/ftp/python/${version}/Python-${version}.tgz && \
     tar -xf Python-${version}.tgz && \
     cd Python-${version} && \
+    sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure && \
     CFLAGS="-fPIC" LDFLAGS="-fPIC" ./configure \
         --prefix=/opt/python/3.10 \
         --enable-optimizations \