Increase min required difficulty to 36 in signing service (#3535)

This commit is contained in:
Kaloyan Raev 2019-11-11 12:27:09 +02:00 committed by GitHub
parent 9dce3dc942
commit 20623fdc96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ type Config struct {
AuthorizationDB authorization.DBConfig
AuthorizationAddr string `default:"127.0.0.1:9000" help:"address for authorization http proxy to listen on"`
MinDifficulty uint `default:"30" help:"minimum difficulty of the requester's identity required to claim an authorization"`
MinDifficulty uint `default:"36" help:"minimum difficulty of the requester's identity required to claim an authorization"`
}
// Peer is the certificates server.

View File

@ -41,7 +41,7 @@ var (
keyCfg struct {
// TODO: where is this used and should it be conistent with "latest" alias?
VersionNumber uint `default:"0" help:"version of identity (0 is latest)"`
MinDifficulty int `help:"minimum difficulty to output" default:"30"`
MinDifficulty int `help:"minimum difficulty to output" default:"36"`
Concurrency int `help:"worker concurrency" default:"4"`
OutputDir string `help:"output directory to place keys" default:"."`
}

View File

@ -53,7 +53,7 @@ type CASetupConfig struct {
ParentKeyPath string `help:"path to the parent authority's private key"`
CertPath string `help:"path to the certificate chain for this identity" default:"$IDENTITYDIR/ca.cert"`
KeyPath string `help:"path to the private key for this identity" default:"$IDENTITYDIR/ca.key"`
Difficulty uint64 `help:"minimum difficulty for identity generation" default:"30"`
Difficulty uint64 `help:"minimum difficulty for identity generation" default:"36"`
Timeout string `help:"timeout for CA generation; golang duration string (0 no timeout)" default:"5m"`
Overwrite bool `help:"if true, existing CA certs AND keys will overwritten" default:"false" setup:"true"`
Concurrency uint `help:"number of concurrent workers for certificate authority generation" default:"4"`