From c7ca99f711f064f947e8d0c9aa4eeaa1c6a5e0c2 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 1 Jun 2016 15:47:34 +0200 Subject: Add emailAddress --- certificate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'certificate.go') diff --git a/certificate.go b/certificate.go index 26f701c..9273975 100644 --- a/certificate.go +++ b/certificate.go @@ -10,9 +10,9 @@ type CSR struct { CSR string `json:"csr"` } -func (p *Provider) Bundle(s *Signer, key crypto.PrivateKey, altnames, emails []string) (tls.Certificate, error) { +func (p *Provider) Bundle(s *Signer, key crypto.PrivateKey, altnames []string, email string) (tls.Certificate, error) { cert := tls.Certificate{PrivateKey: key} - csr, err := NewCSR(key, altnames, emails) + csr, err := NewCSR(key, altnames, email) if err != nil { return cert, err } -- cgit v1.2.3