aboutsummaryrefslogtreecommitdiff
path: root/certificate.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-18 17:08:47 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-18 17:08:47 +0100
commit40a9ef230ee6112e6e8bf5981a4e18a17f34e307 (patch)
tree69338560fe2a6085abcd773aceca5eda82e5c3c4 /certificate.go
parent67e61eb82fe9fcb69f47037a1a4917dc9cfdd777 (diff)
Add emails to CSR
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 05ad0f1..26f701c 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 []string) (tls.Certificate, error) {
+func (p *Provider) Bundle(s *Signer, key crypto.PrivateKey, altnames, emails []string) (tls.Certificate, error) {
cert := tls.Certificate{PrivateKey: key}
- csr, err := NewCSR(key, altnames)
+ csr, err := NewCSR(key, altnames, emails)
if err != nil {
return cert, err
}