Aspose.Words for Python via .NET — “No usable version of libssl was found” on Ubuntu 22.04 (OpenSSL 3.x incompatibility)

Hi Aspose Team,
I am doing conversion of very larger doc/docx files to pdf using Aspose.Words for Python via .NET (v24.10.0), based on Ubuntu 22.04 + Python 3.10.

Error:- System.DllNotFoundException: No usable version of libssl was found

I found that Ubuntu 22.04 ships OpenSSL 3.x (libssl3), while Aspose.Words internally depends on OpenSSL 1.1 (libssl1.1).
However, this PPA-based dependency is not long-term stable, since libssl1.1 is deprecated in new Ubuntu releases.

Can you please confirm ?

  1. Is there an official Aspose.Words build or upcoming version compatible with OpenSSL 3.x / libssl3?
  2. If not yet supported, is there a recommended or officially approved workaround for Ubuntu 22.04+ environments?

Similar issue reported earlier - No usable version of libssl was found

@Kumar1Vikash

It appears you are facing a compatibility issue with OpenSSL while using Aspose.Words for Python via .NET on Ubuntu 22.04. Here are the details regarding your concerns:

  1. Official Build for OpenSSL 3.x: Currently, there is no official Aspose.Words build that supports OpenSSL 3.x (libssl3). The existing versions are still reliant on OpenSSL 1.1 (libssl1.1).

  2. Recommended Workaround: Since libssl1.1 is deprecated, a common workaround is to install the required version of OpenSSL alongside the newer version. You can achieve this using a package manager or by manually downloading the necessary libraries. Here’s a general approach:

    • Install OpenSSL 1.1:

      sudo apt-get install libssl1.1
      
    • If you encounter issues with the above command, you may need to download the .deb package for libssl1.1 from an older Ubuntu repository and install it manually.

    • Alternatively, consider using a Docker container with an older Ubuntu version that supports OpenSSL 1.1, or run your application in a virtual environment that has the required dependencies.

For updates on compatibility or new releases, please monitor the official Aspose forums or documentation.

@Kumar1Vikash Ubuntu 22.04 ships with OpenSSL 3.0, but the current version of Aspose.Words for Python requires OpenSSL 1.1. So to make it work on Ubuntu 22.04 it is required to install SSL1. Here is Dockerfile:

FROM ubuntu:22.04
RUN apt update \
 && apt install -y python3.10 python3-pip libgdiplus wget \
 && wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1_amd64.deb \
 && dpkg -i ./libssl1.1_1.1.1l-1ubuntu1_amd64.deb \
 && rm -i libssl1.1_1.1.1l-1ubuntu1_amd64.deb

ENTRYPOINT ["/usr/bin/python3.10"]