go-ipfs-config: chore: bump minimum key size to 2048

This commit is contained in:
Steven Allen 2019-08-29 10:15:25 -07:00
parent 3692ba8f44
commit a7ff340af6

View File

@ -152,8 +152,8 @@ func DefaultDatastoreConfig() Datastore {
func identityConfig(out io.Writer, nbits int) (Identity, error) {
// TODO guard higher up
ident := Identity{}
if nbits < 1024 {
return ident, errors.New("bitsize less than 1024 is considered unsafe")
if nbits < 2048 {
return ident, errors.New("bitsize less than 2048 is considered unsafe")
}
fmt.Fprintf(out, "generating %v-bit RSA keypair...", nbits)