2
I have 3 devices: A, B and C
Device A is in my possession, device C is an unknown target device on the same network as device B, which acts as a relay
Between A and B there is public key authentication, with A (me) holding the secure private key, which is fine.
However, between B and C there is also public key authentication, however device B could be accessed at any time. How can I protect the private key on device B, without having to many decrypt and encrypt it by manually entering the password (or storing the password insecurely) each time the device (B) be relays a message from A to C.
Is this possible? Are there any key storage programs for this?
Thanks
If these were pgp/gpg keys, they would already be encrypted with a passphrase; additional security would just be icing on the cake, but then there's the passphrase storage problem. Tor works similarly to this setup, and I think their messages are encrypted multiple times, so that even if a relay, B in your case, were reading all the message, B would only see encrypted data that only C or A can read. If you were nesting encrypted messages, you wouldn't care if B were monitored either. I think Jakuje's answer does this, so +1 – Xen2050 – 2016-01-18T17:46:50.443