summaryrefslogtreecommitdiff
path: root/modules/caddypki
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddypki')
-rw-r--r--modules/caddypki/crypto.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddypki/crypto.go b/modules/caddypki/crypto.go
index e1a0e35..d8e72c6 100644
--- a/modules/caddypki/crypto.go
+++ b/modules/caddypki/crypto.go
@@ -23,7 +23,7 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
- "io/ioutil"
+ "os"
"strings"
)
@@ -137,11 +137,11 @@ type KeyPair struct {
func (kp KeyPair) Load() (*x509.Certificate, interface{}, error) {
switch kp.Format {
case "", "pem_file":
- certData, err := ioutil.ReadFile(kp.Certificate)
+ certData, err := os.ReadFile(kp.Certificate)
if err != nil {
return nil, nil, err
}
- keyData, err := ioutil.ReadFile(kp.PrivateKey)
+ keyData, err := os.ReadFile(kp.PrivateKey)
if err != nil {
return nil, nil, err
}