aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/acmed/config.go2
-rw-r--r--cmd/acmed/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/acmed/config.go b/cmd/acmed/config.go
index 284ae61..f1529b2 100644
--- a/cmd/acmed/config.go
+++ b/cmd/acmed/config.go
@@ -131,7 +131,7 @@ func LoadConfig(fname string) (*Config, error) {
return c, nil
}
-type Keychain interface {
+type PrivKey interface {
Path() string
Size() int
}
diff --git a/cmd/acmed/main.go b/cmd/acmed/main.go
index 6963238..5b69327 100644
--- a/cmd/acmed/main.go
+++ b/cmd/acmed/main.go
@@ -29,7 +29,7 @@ func newKey(w io.Writer, size int) (*rsa.PrivateKey, error) {
return key, pem.Encode(w, block)
}
-func chkKey(k Keychain) (*rsa.PrivateKey, error) {
+func chkKey(k PrivKey) (*rsa.PrivateKey, error) {
key := k.Path()
flags := os.O_WRONLY | os.O_CREATE | os.O_TRUNC
if _, err := os.Stat(key); os.IsNotExist(err) {