aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-07 18:32:30 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-07 18:32:30 +0100
commita52095ab5024fe0e44179ad558f59cdbe389910d (patch)
treedd78d959fdc8b48d2deb98c982d97ef34c8cb27e /cmd/acme/config.go
parentcbdfe178da985033d15593078cc6b56ae8215a19 (diff)
Refactor client
Diffstat (limited to 'cmd/acme/config.go')
-rw-r--r--cmd/acme/config.go40
1 files changed, 18 insertions, 22 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index e904e96..eca8117 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -1,8 +1,6 @@
package main
import (
- "crypto/rsa"
- "crypto/x509"
"errors"
"os"
"path"
@@ -36,16 +34,16 @@ type defaults struct {
type provider struct {
Directory string
+ *acme.Provider
}
type account struct {
- Mail string
- Phone string
- Size int
- Key string
- key *rsa.PrivateKey
- account *acme.Account
- needsRegister bool
+ Mail string
+ Phone string
+ Size int
+ Key string
+ *acme.Account
+ acme.Contacts
}
type hook struct {
@@ -53,19 +51,17 @@ type hook struct {
}
type desire struct {
- Provider string
- Account string
- Altnames []string
- Size int
- Key string
- Cert string
- Webroot string
- Hooks []string
- provider *provider
- account *account
- key *rsa.PrivateKey
- chain []*x509.Certificate
- needsNewCert bool
+ Provider string
+ Account string
+ Altnames []string
+ Size int
+ Key string
+ Cert string
+ Webroot string
+ Hooks []string
+ provider *provider
+ account *account
+ *acme.Desire
}
var (