ryran / pyrite

OpenSSL/GnuPG encryption/signing gui for Linux implemented with Python & PyGTK
73 stars 14 forks source link

RFE: Make OpenSSL work in FIPS mode -- add support for -md option #8

Closed ryran closed 11 years ago

ryran commented 11 years ago

I wrote the following KCS solution in Red Hat's knowledgebase:

openssl enc -aes-256-cbc fails in FIPS mode

In short, the root of the issue is that openssl uses md5 by default to hash passphrases ... this becomes a problem on systems where md5 is disallowed (i.e., systems in FIPS mode).

The solution is to use openssl's -md option to specify some non-md5 digest like sha256. So yeah, ToDo: figure out the best way to handle that in pyrite. Possibilities:

ryran commented 11 years ago

I decided to go the simplest route: hard-coded the openssl command-line to include -md sha256.