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.go39
1 files changed, 22 insertions, 17 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 6e260df..e904e96 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -9,6 +9,8 @@ import (
"strings"
"time"
+ "dim13.org/acme"
+
"github.com/BurntSushi/toml"
)
@@ -37,11 +39,13 @@ type provider struct {
}
type account struct {
- Mail string
- Phone string
- Size int
- Key string
- key *rsa.PrivateKey
+ Mail string
+ Phone string
+ Size int
+ Key string
+ key *rsa.PrivateKey
+ account *acme.Account
+ needsRegister bool
}
type hook struct {
@@ -49,18 +53,19 @@ 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
- cert *x509.Certificate
+ 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
}
var (