aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'account.go')
-rw-r--r--account.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/account.go b/account.go
index 8ab9d1c..e3a0392 100644
--- a/account.go
+++ b/account.go
@@ -2,9 +2,7 @@ package acme
import (
"crypto/rsa"
- "encoding/json"
"io"
- "io/ioutil"
"net/mail"
"strings"
@@ -53,24 +51,6 @@ func NewAccount(email, phone string, key *rsa.PrivateKey) (*Account, error) {
}, nil
}
-func LoadAccount(fname string) (*Account, error) {
- body, err := ioutil.ReadFile(fname)
- if err != nil {
- return nil, err
- }
- a := new(Account)
- err = json.Unmarshal(body, a)
- return a, err
-}
-
-func (a Account) SaveAccount(fname string) error {
- body, err := json.MarshalIndent(a, "", "\t")
- if err != nil {
- return err
- }
- return ioutil.WriteFile(fname, body, 0600)
-}
-
// Signer describes a signing interface
type Signer interface {
Sign([]byte, jose.NonceSource) (io.Reader, error)