mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
02.00.2008 91b56edf3ef228cb8e29df9e57a6605a5ce9557c
refs
author jvergara <jvergara@localhost>
Wednesday, April 2, 2008 15:00 +0200
committer jvergara <jvergara@localhost>
Wednesday, April 2, 2008 15:00 +0200
commit91b56edf3ef228cb8e29df9e57a6605a5ce9557c
tree 712d37f9cb51fa6b7cc79d2f3c807411f9280c0f tree | zip | gz
parent e0f2f1dfec15dc60ed7ae8fd29c9aade98b5eb2c view | diff
Fix for issue 3075 (ads-truststore creation failure and exception handling)
1. There is a problem with the default cipher algorithm provided in the CryptoManager configuration (RSA/ECB/OAEPWITHSHA-1ANDMGF1PADDING) since it does not work in IBM Java. RSA/ECB/PKCS1Padding must be used instead in default Java 5 AIX installations. This issue may apply to any other JVM that do not include the same ciphers as Sun JCE.

A fix to handle this case corresponds to the modifications performed in ConfigureDS.java. ConfigureDS checks whether the default cipher can be used with the JVM and if not, tries to use an alternative cipher. If the default cipher does not work and an alternative cipher is found, the configuration of the CryptoManager is updated.

2. There is an issue with keytool utility on Java 1.6. If we write directly the passwords to the keytool process OutputStream it fails. Using a sleep fixes the issue. The modifications in CertificateManager fix this problem. Note that genkeypair is the new subcommand recommended to be used since 1.6, and the code reflects this.

Apart from that a fix with the temporary self-signed certificate that is generated has been also committed by marking the file to be deleted on exit (before these modifications the file was not deleted).
5 files modified
160 ■■■■■ changed files
opends/src/messages/messages/tools.properties 2 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/config/ConfigConstants.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/ConfigureDS.java 94 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/CertificateManager.java 56 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/SetupUtils.java 2 ●●● diff | view | raw | blame | history