fix: removed cert read to load

This commit is contained in:
=
2025-03-09 21:37:28 +05:30
parent cdc90411e5
commit 04479bb70a

View File

@@ -80,9 +80,7 @@ func (g *Gateway) ConnectWithRelay() error {
// Dial TURN Server
if relayPort == "5349" {
caCertPool := x509.NewCertPool()
a, _ := os.ReadFile("/Users/akhilmhdh/Akhi/infisical-gateway-poc/certificates/test/ca-cert.pem")
// caCertPool.AppendCertsFromPEM([]byte(g.config.CertificateChain))
caCertPool.AppendCertsFromPEM(a)
caCertPool.AppendCertsFromPEM([]byte(g.config.CertificateChain))
log.Info().Msgf("Provided relay port %s. Using TLS", relayPort)
conn, err := dtls.Dial("udp", turnAddr, &dtls.Config{