Closed skyup259 closed 8 years ago
A complete example:
user@host ~ $ ccr -g enc -N foobar
Gathering random seed bits from kernel...
If nothing happens, move mouse, type random stuff on keyboard,
or just wait longer.
Seeding done, generating the key...
user@host ~ $ ccr -K
keypair MCEQCMDPC128FO-CUBE256-CHACHA20 @2a0a66bf52caf8c6ba99fa... foobar
user@host ~ $ ccr -pa -F foobar
------ccr begin publickeys 1vrc5rot3ultpn6j------
czExOkNDUi1QVUJLRVlTczY6Zm9vYmFyMzE6TUNFUUNNRFBDMTI4Rk8tQ1VCRTI1Ni1DSEFDSEEy
MDEyODQ6czI1OkNDUi1QVUJMSUMtS0VZLVFDTURQQy1NQ0VpMTM0ZXNpMWVpOTg1N2UxMjMzOuSt
LaZ0b3I6rAMEcCQmear1WFAFmpX5Rw6b4s+wb7ft2z7t27Ii8ujsi2lvF8SedlAjZrtDquE/CEny
uymHY9PAC1K4BMpGPSwXRZbEhLysaz3M3Qbaj7P62C41cw7a9UsIM55b3i6rtkLyaEhB0StC2pl4
r3do0PzDKv+E+LqbnlAGfnaO7DtBC5r868VKU8YMAwFtsZDFCYmEXforpQDwtqPgWD59ptEYjc/3
QlP0NaQGFu0/rabF8ZXLBgC+dAkO/LR0ErtbYV89hH0e7akp6OGym9ew8FBC1UsHWAfIDJZRZtEi
xXnqOzSXjPivuxVzxz4/9JZJrNCSSyqdswPFmPTmBqGtnv/qsvvkj3KGefdhH+qGdM4S0MZHRh2S
LI2G3NQN4vTP+LHeIFc4oFLy3Fer5WLha1ynYr1Kbyt4UYBFpcqmFHFBNFNODWKc23yI8Isa5AYm
GoAxfhKJEXBOYe+LcFrpPg+lPHGUxWt96nTzxwtjhQcbwUtCtsI/Ix5bVJ19jtCYxwJDF2pH+mgw
xicG2icrNYb0V8TRBrAwqbw+WJkjK5dT8zTgOf36yCLJsySplF58yibJdoUOEzflwrJaPlCVJfxU
L8bLxnUlYYpMoMlcesy9JtT2tbl7u+Egx4R6W1TSj6Eq9qtmvr0U4Cg2+RhUY9zVZB8E8Oy8TC91
GF8o+h0xFU1D+UQiiDTQr2HqHvz+CFPWXE0g4s/jsyzMqBEXTqx4oJD4p06rO5eBc2pGjw0sMnsD
b6ZogEwDmJRxV51XJ1dLclzuOCYBqHgiQLFk+7a6AbkMWSwN9POhisRSafcqXH0xHqGKQ6jzsJ6k
UMXHdab/um0dUSD80hfQegOHrCLHQp8hQ/VhAAwBJZiq/Xp29KOzA8EGU/mF9UuPp6/2XZio2S1V
WYdoCUx6b3+sbNngcUjfa/3jNK0J5R/40+HYZav/28xNuWsVaBwKdBRXBR6ARvFILwTNqJioTxPN
SNuVpg8VP8CQMsX3u3OkJdWbt8nzKMgPUr3OEhVUKC5yF//5J4yG7BEcFpAVbZhkD0xGWwTfbNiR
5XjxruJuhpCYGOvm7+sabDhqvHWlyotVHfsHvKOIt5NxhLxRwv7ZyPDftKwLm9zW3zoQd+V8JuoN
YM5EUQHRfMySxfuAKWydl4aPczZ8MYDepNy3OFwqyTequ26LBn0dPIDotdTtJVFYZVuM/28xjqvl
4mdfIBll7e2eiXnxV5v8vsBrYh6zV2uGMNJdhqKCaiq5Zs+o3aRtnS5t144Soz7G4Ven5ojwfcyz
pp94aQgIT0HINS65r+aZwTIpN5OAp49BJG5PIc6Y29Gwqhgfw3xNANl21xzXC5ZbyP7AbAb5q8ec
OxlxPRunFkFtLA3kngPFj8rMOuBUEwezFxpMNVzcIyQp3saGrhP8RnGB/vaOQD7Q9d7i0zpEYsDW
cVRHZMtaWFDEWnRHnXvIUuY4BrIV8VlVI622I4KPDYL4ixVptCqbbtpzjOk//eZQAljgWs0p16j7
kjCStrDl3FkI2l/wxE3YMplDPq2xYrmUIVKiE9u9eTVLdxmVBnjJa0Kyy1Ob9BSGxvzLusYcktVt
CGQUby4Im6Rs53nFXJ9ZsMS9lF3xnpNrQ9IW35RX9t8rAGVlZWU=
------ccr end publickeys 1vrc5rot3ultpn6j------
user@host ~ $ ccr -p -F foobar > key.ccr
...take the file key.ccr to another machine...
user@anotherhost ~ $ ccr -n -i < key.ccr
pubkey MCEQCMDPC128FO-CUBE256-CHACHA20 @2a0a66bf52caf8c6ba99fa... foobar
user@anotherhost ~ $ ccr -i < key.ccr
user@anotherhost ~ $ ccr -k
pubkey MCEQCMDPC128FO-CUBE256-CHACHA20 @2a0a66bf52caf8c6ba99fa... foobar
... it's there!
A commentary:
-g
-K
-p
to a file key.ccr
-pa
to YOUR ccr using import with -a
option. -a
option triggers ascii-armored output suitable for text processing.-n -i
-- it is like --import
, but with --no-action
to prevent accidentally importing something I don't want.-i
.If it doesn't work for you this way, please reopen with exact error.
signature key, encryption key and export of pubkeys is working by using below command : ccr -g sig --name "John Doe" # your signature key ccr -g enc --name "John Doe" # your encryption key ccr -p -a -o my_pubkeys.asc -F Doe # export your pubkeys for friends
but i didn't understand how to import key.i tried to use given example but i failed to do that. please suggest .