aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-17 19:58:09 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-17 19:58:09 +0100
commit2b6bb06811197142d1b0ae53127a37f76e36589a (patch)
treebd8b15e7b151cbeeb73466aeca6960c9748739bf /cmd/acme/config.go
parent48ad524abe8bb9a84d0fdb93c9733a72c9b1638b (diff)
Add CSR to the struct
Diffstat (limited to 'cmd/acme/config.go')
-rw-r--r--cmd/acme/config.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 9ed7e43..7ed5bcb 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -2,6 +2,7 @@ package main
import (
"crypto/rsa"
+ "crypto/x509"
"errors"
"path"
"strings"
@@ -34,8 +35,8 @@ type provider struct {
type account struct {
Mail string
Phone string
- Key string
KeySize int
+ Key string
key *rsa.PrivateKey
}
@@ -47,14 +48,16 @@ type desire struct {
Provider string
Account string
Altnames []string
- Key string
KeySize int
+ Key string
Cert string
Webroot string
Hooks []string
- key *rsa.PrivateKey `toml:"-"`
- account *account
provider *provider
+ account *account
+ key *rsa.PrivateKey
+ cert *x509.Certificate
+ csr *x509.CertificateRequest
}
var (