I try encrypted data transmission in multichain (on VM) according to your instructions. (https://www.multichain.com/developers/stream-confidentiality/)
At the moment, I struggle with that part under "Publish an RSA key pair" wich says:
You should see a block of alphanumeric gibberish, surrounded by BEGIN PRIVATE KEY and END PRIVATE KEY lines. This is an RSA private key. Now let’s generate a public key from that, convert it immediately to hexadecimal, store it in the pubkeyhex shell variable, and take a look:
pubkeyhex=$(openssl rsa -pubout -in ~/.multichain/chain1/stream-privkeys/.pem | xxd -p -c 9999)
Finally, let’s publish our public key as an unlabelled item in the pubkeys stream, which should return a transaction ID:
multichain-cli chain1 publishfrom pubkeys '' $pubkeyhex
For the line "pubkeyhex=$(openssl rsa -pubout -in ~/.multichain/chain1/stream-privkeys/.pem | xxd -p -c 9999)" I get "Can't open /home/...... for reading, No such file or directory ... unable to load Private Key"
I tried it without the xxd part like: "pubkeyhex=$(openssl rsa -pubout -in ~/.multichain/chain1/stream-privkeys/.pem)", than it says "writing RSA key". So I guess that's ok, because with the following "echo $pubkeyhex" it gives me a public key (BEGIN PUBLIC KEY ....... END PUBLIC KEY).
But the last step from the heading (multichain-cli chain1 publishfrom pubkeys '' $pubkeyhex) returns a long error message (error code: -1) with arguments and examples but I don't see what's wrong...
Do I have to complete this line with an address or something??
Thanks in advance for your help.