From: Shengjing Zhu <zhsj@debian.org>
Date: Sat, 17 Dec 2022 15:11:03 +0800
Subject: Replace gocertifi with system cert

---
 client.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client.go b/client.go
index a2c9a6c..be8d7b0 100644
--- a/client.go
+++ b/client.go
@@ -6,6 +6,7 @@ import (
 	"compress/zlib"
 	"crypto/rand"
 	"crypto/tls"
+	"crypto/x509"
 	"encoding/base64"
 	"encoding/hex"
 	"encoding/json"
@@ -24,7 +25,6 @@ import (
 	"sync"
 	"time"
 
-	"github.com/certifi/gocertifi"
 	pkgErrors "github.com/pkg/errors"
 )
 
@@ -338,7 +338,7 @@ var MaxQueueBuffer = 100
 
 func newTransport() Transport {
 	t := &HTTPTransport{}
-	rootCAs, err := gocertifi.CACerts()
+	rootCAs, err := x509.SystemCertPool()
 	if err != nil {
 		log.Println("raven: failed to load root TLS certificates:", err)
 	} else {
