ipfs-key
A tool for easily generating ipfs keypairs
Table of Contents
Installation
$ go get github.com/whyrusleeping/ipfs-key
Usage
When run, it will write the bytes of
the serialized private key to stdout. By default, a 2048 bit RSA key will be
generated. In this case the key size can be changed by specifying the -bitsize
option. The key type can be changed by specifying the -type
option (rsa or
ed25519).
$ ipfs-key -bitsize=4096 > my-rsa4096.key
$ ipfs-key -type=ed25519 > my-ed.key
Kubernetes
ipfs-key creates a public id and a secret key (hex). This means you should encrypt it to base64.
ipfs-key -bitsize=4096 | base64
Now, if you want to add that secret to kubernetes you must apply base64 again.
echo "Last value" | base64
So, you can add it as Kubernetes secret.
Contribute
PRs accepted.
License
MIT Copyright (c) 2016 Jeromy Johnson