aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/provider.go b/provider.go
index 12b486e..2971188 100644
--- a/provider.go
+++ b/provider.go
@@ -1,9 +1,9 @@
package acme
import (
- "crypto/x509"
"encoding/json"
"errors"
+ "io/ioutil"
"net/http"
"regexp"
"time"
@@ -150,11 +150,11 @@ func parseJson(resp *http.Response, v interface{}) error {
}
}
-func parseCert(resp *http.Response) (*x509.Certificate, error) {
+func parseCert(resp *http.Response) ([]byte, error) {
defer resp.Body.Close()
switch resp.Header.Get("Content-Type") {
case mimePkix:
- return readCert(resp.Body)
+ return ioutil.ReadAll(resp.Body)
case mimeProblem:
return nil, problem(resp.Body)
default: