fabric-chaincode-java GitHub
| PR #175 | NettyGrpcServer -- configure ALPN to enable TLS |
| Without ALPN configured, the following exception is thrown when one tries to instantiate NettyChaincodeServer with TLS enabled: ``` java.lang.IllegalArgumentException: ALPN must be enabled and list HTTP/2 as a supported protocol. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:142) at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.ensureAlpnAndH2Enabled(GrpcSslContexts.java:260) at io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder.sslContext(NettyServerBuilder.java:300) at org.hyperledger.fabric.shim.NettyGrpcServer. Created At 2021-04-22 14:52:01 +0000 UTC </div> |