Updated original signature and removed new function

This commit is contained in:
Derek McGowan 2016-06-12 22:57:22 -07:00
parent c8b0781028
commit be785fda33
2 changed files with 2 additions and 8 deletions

View file

@ -41,7 +41,7 @@ func (t *tlsSNIChallenge) Solve(chlng challenge, domain string) error {
} }
// TLSSNI01ChallengeCert returns a certificate and target domain for the `tls-sni-01` challenge // TLSSNI01ChallengeCert returns a certificate and target domain for the `tls-sni-01` challenge
func TLSSNI01ChallengeCertDomain(keyAuth string) (tls.Certificate, string, error) { func TLSSNI01ChallengeCert(keyAuth string) (tls.Certificate, string, error) {
// generate a new RSA key for the certificates // generate a new RSA key for the certificates
tempPrivKey, err := generatePrivateKey(RSA2048) tempPrivKey, err := generatePrivateKey(RSA2048)
if err != nil { if err != nil {
@ -65,9 +65,3 @@ func TLSSNI01ChallengeCertDomain(keyAuth string) (tls.Certificate, string, error
return certificate, domain, nil return certificate, domain, nil
} }
// TLSSNI01ChallengeCert returns a certificate for the `tls-sni-01` challenge
func TLSSNI01ChallengeCert(keyAuth string) (tls.Certificate, error) {
cert, _, err := TLSSNI01ChallengeCertDomain(keyAuth)
return cert, err
}

View file

@ -30,7 +30,7 @@ func (s *TLSProviderServer) Present(domain, token, keyAuth string) error {
s.port = "443" s.port = "443"
} }
cert, err := TLSSNI01ChallengeCert(keyAuth) cert, _, err := TLSSNI01ChallengeCert(keyAuth)
if err != nil { if err != nil {
return err return err
} }