aboutsummaryrefslogtreecommitdiff
path: root/certificate.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-01 15:47:34 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-01 15:47:34 +0200
commitc7ca99f711f064f947e8d0c9aa4eeaa1c6a5e0c2 (patch)
treea3c9c84ef24b98c399f8e8e88abe9c6433bb2b98 /certificate.go
parent869eb618ea3867387f6d7cd8b3d4ce615144274c (diff)
Add emailAddress
Diffstat (limited to 'certificate.go')
-rw-r--r--certificate.go4
1 files changed, 2 insertions, 2 deletions
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
}