Make dep work copying pki package from cli.

TODO: refactor and use this package from the cli.
This commit is contained in:
Mariano Cano 2019-09-13 12:11:46 -07:00
parent e77b7b0b62
commit 50db67e589
2 changed files with 508 additions and 2 deletions

View file

@ -11,8 +11,8 @@ import (
"github.com/pkg/errors"
"github.com/smallstep/certificates/authority"
"github.com/smallstep/certificates/ca"
"github.com/smallstep/certificates/pki"
"github.com/smallstep/cli/command"
"github.com/smallstep/cli/crypto/pki"
"github.com/smallstep/cli/crypto/randutil"
"github.com/smallstep/cli/errs"
"github.com/smallstep/cli/ui"
@ -110,7 +110,7 @@ func onboardAction(ctx *cli.Context) error {
payload, err := json.Marshal(onboardingPayload{Fingerprint: fp})
if err != nil {
return errors.Wrap(err, "error marshalling payload")
return errors.Wrap(err, "error marshaling payload")
}
resp, err := http.Post(onboardingURL, "application/json", bytes.NewBuffer(payload))