To generate a private key you have to provide four environment variables upfront (of course, provided with your values):
CL_KEYSTORE_NAME=testkey
CL_ALIAS=alias
CL_STOREPASS=storepass
CL_KEYPASS=keypass
The second requirement is to mount your host volume into /var/lib/constellation/key where the keytool will generate the key inside the container.
You can run keytool providing env directly or through the env file. Below you will find both examples.
docker run -e CL_KEYSTORE_NAME=testkey -e CL_ALIAS=alias -e CL_STOREPASS=storepass -e CL_KEYPASS=keypass -v `pwd`/key:/var/lib/constellation/key constellationprotocol/keytool:0.0.1
docker run --env-file .env -v `pwd`/key:/var/lib/constellation/key constellationprotocol/keytool:0.0.1
Content type
Image
Digest
sha256:0a78ac98c…
Size
138.3 MB
Last updated
about 4 years ago
docker pull constellationprotocol/keytool:2