mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 22:25:44 +00:00
fix: removed cert read to load
This commit is contained in:
@@ -80,9 +80,7 @@ func (g *Gateway) ConnectWithRelay() error {
|
|||||||
// Dial TURN Server
|
// Dial TURN Server
|
||||||
if relayPort == "5349" {
|
if relayPort == "5349" {
|
||||||
caCertPool := x509.NewCertPool()
|
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([]byte(g.config.CertificateChain))
|
|
||||||
caCertPool.AppendCertsFromPEM(a)
|
|
||||||
|
|
||||||
log.Info().Msgf("Provided relay port %s. Using TLS", relayPort)
|
log.Info().Msgf("Provided relay port %s. Using TLS", relayPort)
|
||||||
conn, err := dtls.Dial("udp", turnAddr, &dtls.Config{
|
conn, err := dtls.Dial("udp", turnAddr, &dtls.Config{
|
||||||
|
|||||||
Reference in New Issue
Block a user