DEV Community

Discussion on: How to secure gRPC connection with SSL/TLS in Go

Collapse
 
qbitty profile image
qbitty

there is an error i n go1.18
cannot create auth interceptor: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: cannot verify signature: insecure algorithm SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)\" while trying to verify candidate authority certificate \"*.techschool.guru\")"

we can fix it temporarily by "GODEBUG=x509sha1=1 go run cmd/client/main.go -address 0.0.0.0:8080"

Collapse
 
michalzalecki profile image
Michal Zalecki

It's not a go's issue, you can generate cert with sha256 instead: techglimpse.com/sha256-hash-certif...