Skip to content

Instantly share code, notes, and snippets.

@andrefsp
Created June 4, 2020 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrefsp/5b110c8ba8fdefc2d5263c484ce218f5 to your computer and use it in GitHub Desktop.
Save andrefsp/5b110c8ba8fdefc2d5263c484ce218f5 to your computer and use it in GitHub Desktop.
package main
import (
"context"
"crypto/tls"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
func main() {
conn, err := grpc.Dial(
"some.url.example.com:443",
grpc.WithTransportCredentials(
credentials.NewTLS(
&tls.Config{
//InsecureSkipVerify: true,
},
),
),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment