aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-18 19:05:17 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-18 19:05:17 +0100
commit474c029149bfa712dc6cbc2918215d430a937a63 (patch)
treeedd650202f5693d73a2c02f96c2a13b3afbcea0f /cmd/acme/main.go
parent8ce6e8dd325c658b3ca49a5de6c7540a72ec3fb5 (diff)
Refactor keysize
Diffstat (limited to 'cmd/acme/main.go')
-rw-r--r--cmd/acme/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/acme/main.go b/cmd/acme/main.go
index 1a4f4f2..a1a6870 100644
--- a/cmd/acme/main.go
+++ b/cmd/acme/main.go
@@ -23,7 +23,7 @@ func chkKey(k PrivKey) (*rsa.PrivateKey, error) {
defer fd.Close()
return acme.LoadKey(fd)
} else {
- log.Println("allocating", key, k.Size())
+ log.Println("allocating", key, k.KeySize())
if err := os.MkdirAll(path.Dir(key), 0700); err != nil {
return nil, err
}
@@ -33,7 +33,7 @@ func chkKey(k PrivKey) (*rsa.PrivateKey, error) {
return nil, err
}
defer fd.Close()
- return acme.NewKey(fd, k.Size())
+ return acme.NewKey(fd, k.KeySize())
}
}