aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-17 19:32:18 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-17 19:32:18 +0100
commit48ad524abe8bb9a84d0fdb93c9733a72c9b1638b (patch)
treeb44855bbfdf08b81abbe22e30711199dc351421f /cmd/acme/config.go
parent69b2d9e91d3861d17ded2dc96defb756aeb081f4 (diff)
Add CSR part
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 }