Remove debug statements
This commit is contained in:
parent
a2749ca8ed
commit
3cd72ac72a
3 changed files with 0 additions and 17 deletions
|
@ -756,9 +756,6 @@ func TestHandler_newAuthorization(t *testing.T) {
|
||||||
}
|
}
|
||||||
for name, run := range tests {
|
for name, run := range tests {
|
||||||
t.Run(name, func(t *testing.T) {
|
t.Run(name, func(t *testing.T) {
|
||||||
if name == "ok/permanent-identifier-enabled" {
|
|
||||||
println(1)
|
|
||||||
}
|
|
||||||
tc := run(t)
|
tc := run(t)
|
||||||
ctx := newBaseContext(context.Background(), tc.db)
|
ctx := newBaseContext(context.Background(), tc.db)
|
||||||
ctx = acme.NewProvisionerContext(ctx, tc.prov)
|
ctx = acme.NewProvisionerContext(ctx, tc.prov)
|
||||||
|
|
|
@ -326,7 +326,6 @@ func deviceAttest01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose
|
||||||
if err := json.Unmarshal(payload, &p); err != nil {
|
if err := json.Unmarshal(payload, &p); err != nil {
|
||||||
return WrapErrorISE(err, "error unmarshalling JSON")
|
return WrapErrorISE(err, "error unmarshalling JSON")
|
||||||
}
|
}
|
||||||
fmt.Println(string(payload))
|
|
||||||
if p.Error != "" {
|
if p.Error != "" {
|
||||||
return storeError(ctx, db, ch, true, NewError(ErrorRejectedIdentifierType,
|
return storeError(ctx, db, ch, true, NewError(ErrorRejectedIdentifierType,
|
||||||
"payload contained error: %v", p.Error))
|
"payload contained error: %v", p.Error))
|
||||||
|
@ -342,9 +341,6 @@ func deviceAttest01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose
|
||||||
return WrapErrorISE(err, "error unmarshalling CBOR")
|
return WrapErrorISE(err, "error unmarshalling CBOR")
|
||||||
}
|
}
|
||||||
|
|
||||||
b, _ := json.Marshal(att)
|
|
||||||
fmt.Println(string(b))
|
|
||||||
|
|
||||||
switch att.Format {
|
switch att.Format {
|
||||||
case "apple":
|
case "apple":
|
||||||
data, err := doAppleAttestationFormat(ctx, ch, db, &att)
|
data, err := doAppleAttestationFormat(ctx, ch, db, &att)
|
||||||
|
@ -379,7 +375,6 @@ func deviceAttest01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose
|
||||||
if err != nil {
|
if err != nil {
|
||||||
var acmeError *Error
|
var acmeError *Error
|
||||||
if errors.As(err, &acmeError) {
|
if errors.As(err, &acmeError) {
|
||||||
fmt.Printf("debug: %#v\n", acmeError)
|
|
||||||
if acmeError.Status == 500 {
|
if acmeError.Status == 500 {
|
||||||
return acmeError
|
return acmeError
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"encoding/pem"
|
|
||||||
"net"
|
"net"
|
||||||
"os"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
@ -205,13 +203,6 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques
|
||||||
return WrapErrorISE(err, "error signing certificate for order %s", o.ID)
|
return WrapErrorISE(err, "error signing certificate for order %s", o.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
pem.Encode(os.Stdout, &pem.Block{
|
|
||||||
Type: "CERTIFICATE REQUEST", Bytes: csr.Raw,
|
|
||||||
})
|
|
||||||
pem.Encode(os.Stdout, &pem.Block{
|
|
||||||
Type: "CERTIFICATE", Bytes: certChain[0].Raw,
|
|
||||||
})
|
|
||||||
|
|
||||||
cert := &Certificate{
|
cert := &Certificate{
|
||||||
AccountID: o.AccountID,
|
AccountID: o.AccountID,
|
||||||
OrderID: o.ID,
|
OrderID: o.ID,
|
||||||
|
|
Loading…
Add table
Reference in a new issue