aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/acme/config.go')
-rw-r--r--cmd/acme/config.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 7f5ffbe..9ed7e43 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -136,14 +136,19 @@ func LoadConfig(fname string) (*Config, error) {
}
type PrivKey interface {
- Path() string
+ KeyPath() string
Size() int
}
-func (d desire) Path() string { return d.Key }
-func (d desire) Size() int { return d.KeySize }
-func (a account) Path() string { return a.Key }
-func (a account) Size() int { return a.KeySize }
+type Cert interface {
+ CertPath() string
+}
+
+func (d desire) CertPath() string { return d.Cert }
+func (d desire) KeyPath() string { return d.Key }
+func (d desire) Size() int { return d.KeySize }
+func (a account) KeyPath() string { return a.Key }
+func (a account) Size() int { return a.KeySize }
type duration struct{ time.Duration }