Skip to content

Commit

Permalink
deleting unimplemented file command
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo committed Jan 29, 2020
1 parent 7e938d1 commit ddd7b3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ the command has three modes:
The following command signs a zone with NSEC3, using the file name `example.com` and creates a new file with the name `example.com.signed`, using the [DTC](https://github.com/niclabs/dtc) library. If there are not keys on the HSM, it creates them.

```
./hsm-tools sign -p ./dtc.so -f ./example.com -3 -z example.com -o example.com.signed -c
./hsm-tools sign pkcs11 -p ./dtc.so -f ./example.com -3 -z example.com -o example.com.signed -c
```

Some arguments were omited, so they are set by their default value.
Expand Down Expand Up @@ -91,7 +91,7 @@ You can also set the config file path using `--config` flag.
- [x] Create keys in HSM
- [x] Sign using PKCS11 (for HSMs):
- [x] RSA
- [ ] ECDSA
- [x] ECDSA
- [ ] SHA-1
- [ ] SHA128
- [x] SHA256
Expand Down
5 changes: 3 additions & 2 deletions cmd/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ func init() {
signCmd.PersistentFlags().StringP("key-label", "l", "HSM-tools", "Label of HSM Signer Key")

pkcs11Cmd.PersistentFlags().StringP("p11lib", "p", "", "Full path to PKCS11 lib file")
fileCmd.PersistentFlags().StringP("keyfile", "K", "", "Full path to key file")
// TODO: implement file signing
// fileCmd.PersistentFlags().StringP("keyfile", "K", "", "Full path to key file")


viper.BindPFlag("user-key", signCmd.PersistentFlags().Lookup("user-key"))
Expand All @@ -41,7 +42,7 @@ func init() {


signCmd.AddCommand(pkcs11Cmd)
signCmd.AddCommand(fileCmd)
//signCmd.AddCommand(fileCmd)
}

var signCmd = &cobra.Command{
Expand Down

0 comments on commit ddd7b3a

Please sign in to comment.