forked from External/ergo
parent
dc4214a8ca
commit
430b40fc2f
10 changed files with 18 additions and 21 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
"encoding/pem"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
|
|
@ -34,7 +34,7 @@ func (t *JwtServiceConfig) Postprocess() (err error) {
|
|||
t.secretBytes = []byte(t.Secret)
|
||||
t.Secret = ""
|
||||
if t.RSAPrivateKeyFile != "" {
|
||||
keyBytes, err := ioutil.ReadFile(t.RSAPrivateKeyFile)
|
||||
keyBytes, err := os.ReadFile(t.RSAPrivateKeyFile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue