diff options
author | KallyDev <[email protected]> | 2021-09-30 01:17:48 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-29 11:17:48 -0600 |
commit | c48fadc4a7655008d13076c7f757c36368e2ca13 (patch) | |
tree | 3fe2837e02e9b664dd5b86afbe42494ac20997f8 /modules/caddytls/acmeissuer.go | |
parent | 059fc32f002d00e980b438b3edbdf7b8bcdf9a90 (diff) | |
download | caddy-c48fadc4a7655008d13076c7f757c36368e2ca13.tar.gz caddy-c48fadc4a7655008d13076c7f757c36368e2ca13.zip |
Move from deprecated ioutil to os and io packages (#4364)
Diffstat (limited to 'modules/caddytls/acmeissuer.go')
-rw-r--r-- | modules/caddytls/acmeissuer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddytls/acmeissuer.go b/modules/caddytls/acmeissuer.go index 9a7e73cd9..42cef0215 100644 --- a/modules/caddytls/acmeissuer.go +++ b/modules/caddytls/acmeissuer.go @@ -18,8 +18,8 @@ import ( "context" "crypto/x509" "fmt" - "io/ioutil" "net/url" + "os" "strconv" "time" @@ -152,7 +152,7 @@ func (iss *ACMEIssuer) Provision(ctx caddy.Context) error { if len(iss.TrustedRootsPEMFiles) > 0 { iss.rootPool = x509.NewCertPool() for _, pemFile := range iss.TrustedRootsPEMFiles { - pemData, err := ioutil.ReadFile(pemFile) + pemData, err := os.ReadFile(pemFile) if err != nil { return fmt.Errorf("loading trusted root CA's PEM file: %s: %v", pemFile, err) } |