From 3cd72ac72a7c76de3b974b2fd40454c9417700b0 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 8 Sep 2022 10:44:48 -0700 Subject: [PATCH] Remove debug statements --- acme/api/order_test.go | 3 --- acme/challenge.go | 5 ----- acme/order.go | 9 --------- 3 files changed, 17 deletions(-) diff --git a/acme/api/order_test.go b/acme/api/order_test.go index 0875b7ec..970be5c3 100644 --- a/acme/api/order_test.go +++ b/acme/api/order_test.go @@ -756,9 +756,6 @@ func TestHandler_newAuthorization(t *testing.T) { } for name, run := range tests { t.Run(name, func(t *testing.T) { - if name == "ok/permanent-identifier-enabled" { - println(1) - } tc := run(t) ctx := newBaseContext(context.Background(), tc.db) ctx = acme.NewProvisionerContext(ctx, tc.prov) diff --git a/acme/challenge.go b/acme/challenge.go index cd12c5cc..26453e9b 100644 --- a/acme/challenge.go +++ b/acme/challenge.go @@ -326,7 +326,6 @@ func deviceAttest01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose if err := json.Unmarshal(payload, &p); err != nil { return WrapErrorISE(err, "error unmarshalling JSON") } - fmt.Println(string(payload)) if p.Error != "" { return storeError(ctx, db, ch, true, NewError(ErrorRejectedIdentifierType, "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") } - b, _ := json.Marshal(att) - fmt.Println(string(b)) - switch att.Format { case "apple": 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 { var acmeError *Error if errors.As(err, &acmeError) { - fmt.Printf("debug: %#v\n", acmeError) if acmeError.Status == 500 { return acmeError } diff --git a/acme/order.go b/acme/order.go index 2f62d764..ee76a364 100644 --- a/acme/order.go +++ b/acme/order.go @@ -5,9 +5,7 @@ import ( "context" "crypto/x509" "encoding/json" - "encoding/pem" "net" - "os" "sort" "strings" "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) } - 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{ AccountID: o.AccountID, OrderID: o.ID,