This program generates swarm.key file for IPFS Private Network feature.
it is obsolate
go get -u github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen
use following
go install github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen@latest
ipfs-swarm-key-gen > ~/.ipfs/swarm.key
Change ~/.ipfs/
to different directory if you use custom IPFS_PATH.
MIT