Skip to content

"Protecting a Blog" with docker-compose and GoLang. #1967

Answered by ecordell
jb-is-batman asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jb-is-batman

It looks like you're configuring your client to validate TLS:

	systemCerts, err := grpcutil.WithSystemCerts(grpcutil.VerifyCA)
	if err != nil {
		log.Fatalf("unable to load system CA certificates: %s", err)
	}
	client, err := authzed.NewClient(
                 // ...
		systemCerts,
	)

But the server is not configured with TLS.

The simplest thing to do for testing would be to disable TLS validation in the client, like this:

import (
 	grpc "google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
)

	// systemCerts, err := grpcutil.WithSystemCerts(grpcutil.VerifyCA)
	// if err != nil {
	// 	log.Fatalf("unable to load system CA certificates: %s", err)
	// }

	c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jb-is-batman
Comment options

Answer selected by jb-is-batman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants