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