From 2b6bb06811197142d1b0ae53127a37f76e36589a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 17 Dec 2015 19:58:09 +0100 Subject: Add CSR to the struct --- cmd/acme/config.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cmd/acme/config.go') 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 ( -- cgit v1.2.3