You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2025-08-09 03:22:43 +03:00
Only check for signed keys in proxycommand.
This commit is contained in:
@@ -122,7 +122,7 @@ func doLoginIfNeeded(ctx *cli.Context, subject string) error {
|
||||
}
|
||||
|
||||
// Do login flow if key is not in agent
|
||||
if _, err := agent.GetSigner(subject, opts...); err != nil {
|
||||
if exists, err := agent.HasKeys(opts...); err != nil || !exists || len(opts) == 0 {
|
||||
flow, err := cautils.NewCertificateFlow(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user