aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-03 18:28:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-03 18:28:17 +0200
commit7ba60a81b1f2429c9ed1d381367f547fa10ed14e (patch)
tree1892b619e612ae13e12fb4cfc4d9ab2cd59d4c1f /cmd
parent075dd20306b45837a37b4f41de9bf132ebce8467 (diff)
Update ContentLength
Diffstat (limited to 'cmd')
-rw-r--r--cmd/batch/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/batch/main.go b/cmd/batch/main.go
index 964f6f3..58f437e 100644
--- a/cmd/batch/main.go
+++ b/cmd/batch/main.go
@@ -36,7 +36,11 @@ func main() {
log.Println("Skip", c)
continue
}
- csr, err := acme.NewCSR(c.PrivateKey, c.Leaf.DNSNames, acme.GetMail(c.Leaf))
+ mail := acme.GetMail(c.Leaf)
+ if mail == "" {
+ continue
+ }
+ csr, err := acme.NewCSR(c.PrivateKey, c.Leaf.DNSNames, mail)
if err != nil {
log.Println(err)
continue