Does GRPC C++ support OpenSSL3.0 compilation?

560 views
Skip to first unread message

小煤球

unread,
Jan 12, 2023, 3:29:29 AM1/12/23
to grpc.io
When I tried to compile grpc, I changed the OpenSSL version to 3.0, but many undefined errors occurred during the compilation.

veb...@google.com

unread,
Jan 25, 2023, 1:35:28 PM1/25/23
to grpc.io
I don't think gRPC supports OpenSSL 3.0 yet as we have https://github.com/grpc/grpc/pull/31256 open.
But it's puzzling to me that you saw many undefined errors. I expected that it should be compile errors due to API breaking changes or runtime errors due to potential API behavior changes.

Daksha Tulshikar

unread,
Aug 22, 2024, 2:30:49 PMAug 22
to grpc.io
i am facing link errors when i use openssl3.0 , please guide. My application package uses 3.0 openssl .Trying to integrate this package with grpc.

Daksha Tulshikar

unread,
Aug 22, 2024, 2:31:02 PMAug 22
to grpc.io
are there any plans to support openssl 3.0?

On Thursday, January 26, 2023 at 12:05:28 AM UTC+5:30 veb...@google.com wrote:


Esun Kim

unread,
Aug 22, 2024, 4:26:25 PMAug 22
to Daksha Tulshikar, grpc.io
gRPC started to support OpenSSL since 1.58 (link)

--
You received this message because you are subscribed to a topic in the Google Groups "grpc.io" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grpc-io/V3Bp4QNGpMQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5267b229-7ff3-4614-9cae-0b82785cb22an%40googlegroups.com.


--
Regards,
Esun.

Esun Kim

unread,
Aug 22, 2024, 4:26:28 PMAug 22
to Daksha Tulshikar, grpc.io
Sorry for missing version;

gRPC started to support OpenSSL 3 since 1.58 (link)
--
Regards,
Esun.

Daksha Tulshikar

unread,
Aug 23, 2024, 2:23:54 PMAug 23
to Esun Kim, grpc.io
Hi Esun,

Thanks for the update.

I am using the latest grpc v1.66.0

git clone --recurse-submodules -b v1.66.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc

So will it work with openssl 3.0.7 or 3.0.8 ?

I first installed grpc with default boringssl and then installed
with openssl installed on my system (1.1.1g) ie with

cmake -DgRPC_INSTALL=ON \
-DgRPC_SSL_PROVIDER=package \
      -DgRPC_BUILD_TESTS=OFF \
      -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
      ../..

This worked for me.
since grpc v1.66 will work with openssl 3.0.7 , i will try with that as well. My application works on openssl 3.0.7.




Daksha Tulshikar

unread,
Aug 23, 2024, 2:23:58 PMAug 23
to Esun Kim, grpc.io
correction , my application works on openssl  1.1.1c ,will try with that.

Daksha Tulshikar

unread,
Aug 30, 2024, 1:09:05 PMAug 30
to Esun Kim, grpc.io
Hi Esun,

I have an application which uses openssl v 1.1.1c.
I am trying to integrate with grpc , it compiles and links properly, but when i run it throws a segmentation fault (core dump). The issue points to libcrypto.so. 

Can you please guide me on installing grpc (any specific version?) and the steps to install, so that it is compatible with openssl v1.1.1c?
Trying for many days. Appreciate your help

regards
Daksha
Reply all
Reply to author
Forward
0 new messages