Skip to content

Commit c74a5b0

Browse files
authored
feat(build): add github.com/breml/rootcerts (#2695)
- Valid CAs are built-in the Go binary and used if they are not found in the operating system - Fix missing CAs related errors on Docker images
1 parent d4fc383 commit c74a5b0

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

cmd/gossamer/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
"github.com/ChainSafe/gossamer/lib/keystore"
1515
"github.com/ChainSafe/gossamer/lib/utils"
1616
"github.com/urfave/cli"
17+
18+
_ "github.com/breml/rootcerts"
1719
)
1820

1921
const (

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ require (
44
github.com/ChainSafe/chaindb v0.1.5-0.20220322154826-c0d431995732
55
github.com/ChainSafe/go-schnorrkel v0.0.0-20210318173838-ccb5cd955283
66
github.com/OneOfOne/xxhash v1.2.8
7+
github.com/breml/rootcerts v0.2.6
78
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
89
github.com/centrifuge/go-substrate-rpc-client/v3 v3.0.2
910
github.com/chyeh/pubip v0.0.0-20170203095919-b7e679cf541c

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB
125125
github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c=
126126
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
127127
github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g=
128+
github.com/breml/rootcerts v0.2.6 h1:CdPczjzItec+wopLoDsBAFcLEai2q7Yayfg/94/q/2E=
129+
github.com/breml/rootcerts v0.2.6/go.mod h1:24FDtzYMpqIeYC7QzaE8VPRQaFZU5TIUDlyk8qwjD88=
128130
github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ=
129131
github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8=
130132
github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI=

0 commit comments

Comments
 (0)