Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.77k stars 1.82k forks source link

[LINUX SDK Java] Openssl 3 compatibility #1747

Closed aberthout closed 1 year ago

aberthout commented 1 year ago

Hello,

Is there soon to be an integration of version 3 of OpenSSL ? We use the ASR with the Java SDK inside a Docker container with OS Ubuntu 22.04 and the library libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb. But as you know new vulnerabilities about OpenSSL arrived since the end of October. Unless building yourself the latest version from sources (https://github.com/openssl/openssl/releases/tag/OpenSSL_1_1_1s) it is impossible to have it. Ubuntu 22.04 (Jammy version) registry provides only OpenSSL 3 with fix vulnerabilities of course.

My other worry is the end of the support OpenSSL 1.1.1 after 2023 (https://www.openssl.org/policies/releasestrat.html). This confirms my question with OpenSSL 3.

Thanks :)

pankopon commented 1 year ago

Hi, we have a work item on the backlog to support OpenSSL 3.x but no ETA yet. We should have a plan for it before OpenSSL 1.x is discontinued. (@jhakulin)

pankopon commented 1 year ago

Internal work item ref. 4254856.

pankopon commented 1 year ago

Closing the issue as we have a corresponding feature request on our backlog and continue tracking the status there.

Tenzer commented 1 year ago

Debian 12 is now released and it only comes with OpenSSL 3. Any progress on this so we can upgrade the operating system?

pankopon commented 1 year ago

@Tenzer The compatibility is still in the works, but you can install the latest OpenSSL 1.x from sources and use Speech SDK applications with that. I just verified the following setup on Debian 12:

sudo apt-get install build-essential ca-certificates libasound2 wget
wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf -
cd openssl-1.1.1u
./config --prefix=/usr/local
make -j $(nproc)
sudo make install_sw install_ssldirs
sudo ldconfig -v
export SSL_CERT_DIR=/etc/ssl/certs

The last line to set SSL_CERT_DIR is critical (it must be in effect systemwide or at least in the console where the app is launched from), otherwise OpenSSL 1.x installed in /usr/local won't find certificates.

(In the future, please open a new issue if the original has been already closed - I only noticed your question here by accident.)

niklaskorz commented 1 year ago

OpenSSL 1.x will reach EOL in less than a month. Starting September 11 2023, installing it from source is not a sensible solution anymore.

Baklap4 commented 4 months ago

Linking issue: https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/2048 since all other issues are closed.