mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 19:07:48 +08:00
use 2048 keys everywhere else
This commit is contained in:
parent
0871fa3779
commit
a2a70d2cc0
@ -113,8 +113,8 @@ func main() {
|
||||
}
|
||||
|
||||
func setupPeer(a args) (peer.ID, pstore.Peerstore, error) {
|
||||
if a.keybits < 1024 {
|
||||
return "", nil, errors.New("bitsize less than 1024 is considered unsafe")
|
||||
if a.keybits < 2048 {
|
||||
return "", nil, errors.New("bitsize less than 2048 is considered unsafe")
|
||||
}
|
||||
|
||||
out("generating key pair...")
|
||||
|
||||
1
go.mod
1
go.mod
@ -109,7 +109,6 @@ require (
|
||||
go4.org v0.0.0-20190313082347-94abd6928b1d // indirect
|
||||
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect
|
||||
google.golang.org/appengine v1.4.0 // indirect
|
||||
gopkg.in/cheggaaa/pb.v1 v1.0.28
|
||||
gotest.tools/gotestsum v0.3.4
|
||||
)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
FROM zaqwsx_ipfs-test-img
|
||||
|
||||
RUN ipfs init -b=1024
|
||||
RUN ipfs init -b=2048
|
||||
ADD . /tmp/id
|
||||
RUN mv -f /tmp/id/config /root/.ipfs/config
|
||||
RUN ipfs id
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
FROM zaqwsx_ipfs-test-img
|
||||
|
||||
RUN ipfs init -b=1024
|
||||
RUN ipfs init -b=2048
|
||||
ADD . /tmp/id
|
||||
RUN mv -f /tmp/id/config /root/.ipfs/config
|
||||
RUN ipfs id
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
FROM zaqwsx_ipfs-test-img
|
||||
|
||||
RUN ipfs init -b=1024
|
||||
RUN ipfs init -b=2048
|
||||
ADD . /tmp/test
|
||||
RUN mv -f /tmp/test/config /root/.ipfs/config
|
||||
RUN ipfs id
|
||||
|
||||
Loading…
Reference in New Issue
Block a user