crypto/tls: missing alpnprotocol field's value of the message which SSL/TLS protocol's handshake phase sends back. #45918
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Both go1.12 and go.1.15 occur the same bug which described as follows.
I read the codes of the master branch, the problem is also existed.
When I use grpc-go build a http server which eanble ssl/tls protocol, the browser visit the grpc service normally.
But I use grpc-java as a client to visit the grpc service, the exception information:
The reason is: the SSL/TLS of grpc-java will checked the alpnprotocol after the handshake success. But the message which sends back by grpc-go missing the alpnprotocol.
check codes of class ClientTlsHandler of
io.grpc.netty.ProtocolNegotitators.java
file:The codes of the method "doFullHandshake" of go sdk's source file: "crypto/tls/handshake_server.go":
so add the codes to the method "doFullHandshake" of go sdk's source file: "crypto/tls/handshake_server.go:
The text was updated successfully, but these errors were encountered: