It might be easier to use curl or openssl command to get the server side cert and save it in a pem file to add to your trustStore on the client side. e.g. https://daniel.haxx.se/blog/2018/11/07/get-the-ca-cert-for-curl/
On Tuesday, May 3, 2022 at 7:28:41 AM UTC-7 [email protected] wrote: > We have C++ GRPC client (at windows) and c++ GRPC server (at Linux) and > like to communicate server using SSL for encrypted transfer of messages. > > We have implemented the SSL server and able to communicate to it by > establishing secure channel from client, however the flip side is currently > we are manually deploying SSL server certificate in the client machines. > > We have an alternate work around RUN another GRPC server as insecure and > establish insecure connection from client to get server certificate and > then communicate to actual server as secured for rest of communications. > However our consumers do not want multiple ports to be opened in the server. > > Considering the above scenario, is there way to get server certificate > automatically from secure server itself by establishing insecure connection > initially to get certificate and then continue secure connection for the > rest of the APIs. > > Thanks in advance > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/7291c8dc-2ab4-4ca2-8bc3-3b6b840f2105n%40googlegroups.com.
