Created
June 4, 2020 14:42
-
-
Save andrefsp/5b110c8ba8fdefc2d5263c484ce218f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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