aboutsummaryrefslogtreecommitdiff
path: root/certificate.go
diff options
context:
space:
mode:
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 ada5991..05ad0f1 100644
--- a/certificate.go
+++ b/certificate.go
@@ -10,7 +10,7 @@ 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 []string) (tls.Certificate, error) {
cert := tls.Certificate{PrivateKey: key}
csr, err := NewCSR(key, altnames)
if err != nil {
@@ -28,7 +28,7 @@ func (p *Provider) Bundle(s Signer, key crypto.PrivateKey, altnames []string) (t
return cert, nil
}
-func (p *Provider) RequestCert(s Signer, csr string) ([]byte, string, error) {
+func (p *Provider) RequestCert(s *Signer, csr string) ([]byte, string, error) {
req := &CSR{
Resource: ResNewCert,
CSR: csr,