Encrypt tar file asymmetrically

Posted by DerMike on Super User See other posts from Super User or by DerMike
Published on 2011-02-22T15:10:13Z Indexed on 2011/02/22 15:27 UTC
Read the original article Hit count: 285

I want to achieve something like

tar -c directory | openssl foo > encrypted_tarfile.dat

I need the openssl tool to use public key encryption.

I found an earlier question about symmetric encryption at the command promt (sic!), which does not suffice. I did take a look in the openssl(1) man page and only found symmetric encryption. Does openssl really not support asymmetric encryption?

Basically many users are supposed to create their encrypted tar files and store them in a central location, but only few are allowed to read them.

© Super User or respective owner

Related posts about linux

Related posts about command-line