diff --git a/pkg/api/ca.go b/pkg/api/ca.go index 58d2cfe4a..00e19455d 100644 --- a/pkg/api/ca.go +++ b/pkg/api/ca.go @@ -203,7 +203,7 @@ func signingCert(w http.ResponseWriter, req *http.Request) { } // Set the SCT and Content-Type headers, and then respond with a 201 Created. - w.Header().Add("SCT", string(sctBytes)) + w.Header().Add("SCT", base64.StdEncoding.EncodeToString(sctBytes)) w.Header().Add("Content-Type", "application/pem-certificate-chain") w.WriteHeader(http.StatusCreated) // Write the PEM encoded certificate chain to the response body.