Also, how about a drop-down or list somewhere in Cockpit that shows
all of the available algorithms? For my JRE that list is:
ARCFOUR
PBEWITHSHA1ANDDESEDE
DESEDEWRAP
PBEWITHMD5ANDTRIPLEDES
DESEDE
RSA
AESWRAP
AES
PBEWITHMD5ANDDES
BLOWFISH
DES
RC2
PBEWITHSHA1ANDRC2_40
Will JetS3t use any of them? Or only the ones that start with "PBE"?
Following your suggestion I have added a listing of available
algorithms to the dialog box, as well as adding the Bouncy Castle
provider to the JetS3t suite. With this change the algorithm used by
Cockpit can be changed on the fly in the Preferences dialog box, and
the extra Bouncy Castle algorithms will be available as long as the
BC library is available on the classpath.
Note that only PBE algorithms are supported in JetS3t at present. I
believe this is appropriate as these are the algorithms intended for
password-based encryption, which is what JetS3t is doing.
From the ciphers you listed I'm guessing you're using JDK 1.6 which
is good as this version includes thecipher PBEWITHMD5ANDTRIPLEDES
which is much better than the JetS3t default (which is only single DES).
What is the relationship between the crypto.algorithm property in
jets3t.properties and the drop-down in Cockpit?
When opening the encryption preferences dialog I'm getting several
errors like this:
ERROR [org.jets3t.service.security.EncryptionUtil] Availability test
failed for encryption cipher PBEWITHSHA256AND192BITAES-CBC-BC
java.security.InvalidKeyException: Illegal key size
The lack of the Bouncy Castle library in the scripts was an
oversight, I have added this. Thanks for the heads up.
> What is the relationship between the crypto.algorithm property in
> jets3t.properties and the drop-down in Cockpit?
The algorithm drop-down list in Cockpit's preferences overrides the
"crypto.algorithm" setting in jets3t.properties files. When the
encryption preferences are first opened the default algorithm as
specified by "crypto.algorithm" will be selected, provided this
algorithm is available and usable on the system.
Changes to the algorithm preference in the drop-down are not saved
back to the jets3t.properties file, and therefore apply only to the
current Cockpit session.
> When opening the encryption preferences dialog I'm getting several
> errors like this:
>
> ERROR [org.jets3t.service.security.EncryptionUtil] Availability test
> failed for encryption cipher PBEWITHSHA256AND192BITAES-CBC-BC
> java.security.InvalidKeyException: Illegal key size
This error message, which can occur quite often on JDK installations
without the export-grade JCE extensions installed, has been
downgraded to a DEBUG message.