tomcat和grpc都升级到ssl [英] tomcat and grpc both upgrade to ssl
问题描述
我有一个部署在tomcat 8上的Web应用程序,该应用程序还向其他模块提供了grpc服务,现在我想将http服务更新为https,并且grpc应该使用ssl,但是我对此有一些疑问工作,tomcat支持tcnative-1.dll到https,但是grpc不使用它,我用netty-tcnatice但它在我的tomcat中不起作用,似乎两件事不能一起使用,如果我使用tomcat的dll grpc会弹出一个错误,因为找不到openssl安装库错误: Jetty ALPN/NPN的配置不正确.我该怎么办?请提供帮助,谢谢.
i have a web application which deploy on tomcat 8 and this app also provide grpc service to other module, now i want to make the http service update to https and also the grpc should use ssl, but i have some issue on this job, the tcnative-1.dll is supported by tomcat to https, but grpc not use this, i used netty-tcnatice but it does't work in my tomcat, seems the two things can't work together,if i use tomcat's dll the grpc will pop up an error for not find the openssl install lib error:Jetty ALPN/NPN has not been properly configured. how could i do? please give some help, thanks.
推荐答案
Tomcat不兼容已由netty-tcnative 2修复.目前,您应该使用与netty-tcnative v2.0.5兼容的grpc-java 1.4.0.
The Tomcat incompatibility is fixed with netty-tcnative 2. At the moment, you should use grpc-java 1.4.0 which is compatible with netty-tcnative v2.0.5.
这篇关于tomcat和grpc都升级到ssl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!