aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cashier/main.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/cmd/cashier/main.go b/cmd/cashier/main.go
index f0ba2f1..7054bef 100644
--- a/cmd/cashier/main.go
+++ b/cmd/cashier/main.go
@@ -13,7 +13,6 @@ import (
"github.com/nsheridan/cashier/client"
"github.com/pkg/browser"
"github.com/spf13/pflag"
- "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
)
@@ -25,7 +24,6 @@ var (
validity = pflag.Duration("validity", time.Hour*24, "Key lifetime. May be overridden by the CA at signing time")
keytype = pflag.String("key_type", "", "Type of private key to generate - rsa, ecdsa or ed25519. (default \"rsa\")")
publicFilePrefix = pflag.String("key_file_prefix", "", "Prefix for filename for public key and cert (optional, no default)")
- useGRPC = pflag.Bool("use_grpc", false, "Use grpc (experimental)")
)
func main() {
@@ -59,12 +57,7 @@ func main() {
message = scanner.Text()
}
- var cert *ssh.Certificate
- if *useGRPC {
- cert, err = client.RPCSign(pub, token, message, c)
- } else {
- cert, err = client.Sign(pub, token, message, c)
- }
+ cert, err := client.Sign(pub, token, message, c)
if err != nil {
log.Fatalln(err)
}