title: Disabling certificate check in gRPC TLS
body: <p>Currently, I have a ngnix server (on port 5001) behind which a gRPC server is running, nginx having TLS enabled. All gRPC clients need to send the request to nginx port which forwards to gRPC server running. Initially for testing had gRPC request using usePlaintext() and it all worked fine, but the end goal is to use TLS. The requirement here is (as this are internal applications), gRPC channel request need not pass certificate but do a "skip certificate" when creating the channel.
  After Googling around, I found examples on TLS but all of them does take .cert, .key file. Below is snippet which i tried and it failed at the server end couldn't validate the certificate</p>
  
  <pre><code> (java code)              
  ManagedChannel channel = NettyChannelBuilder.forAddress(&lt;server IP address&gt;, 5001).sslContext(GrpcSslContexts.forClient().trustManager
                                  (new File(&lt;.cert file&gt;).build())
                          .build();
  </code></pre>
  
  <p>Doing some more research, i see Golang has InsecureSkipVerify() using which i can skip ceritifcate check (pls correct me if i am wrong)</p>
  
  <pre><code>tc := credentials.NewTLS(&amp;tls.Config{
                  InsecureSkipVerify: true,
              })
  </code></pre>
  
  <p>Now how do I accomplish the same in java?</p>