diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2021-09-21 16:12:27 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2021-12-13 09:23:43 +0100 |
commit | 0e8975416c90c44b6b73add7a9b6e0cb2a7b49be (patch) | |
tree | 555f75a7d73be2f962bf85bbf0b5f934c0251595 /id/server/moa-id-commons/src/main/java | |
parent | 0436de6184c1a95d463da52929e3bf60923d6e04 (diff) | |
download | moa-id-spss-0e8975416c90c44b6b73add7a9b6e0cb2a7b49be.tar.gz moa-id-spss-0e8975416c90c44b6b73add7a9b6e0cb2a7b49be.tar.bz2 moa-id-spss-0e8975416c90c44b6b73add7a9b6e0cb2a7b49be.zip |
change errorhandling in SSLTrustManager in case of an invalid file in truststore.
Diffstat (limited to 'id/server/moa-id-commons/src/main/java')
-rw-r--r-- | id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/ssl/MOAIDTrustManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/ssl/MOAIDTrustManager.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/ssl/MOAIDTrustManager.java index dd606ea18..4da6888a9 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/ssl/MOAIDTrustManager.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/ssl/MOAIDTrustManager.java @@ -156,8 +156,8 @@ public class MOAIDTrustManager extends IAIKX509TrustManager { certList.add(cert); } catch (Exception e) { - Logger.error("Can NOT initialize SSLTrustManager. Certificate: " + certFile.getPath() - + " is not loadable, Reason: " + e.getMessage()); + Logger.warn("Can NOT import Certificate: " + certFile.getPath() + + " into SSLTrustManager. Reason: " + e.getMessage()); if (Logger.isDebugEnabled()) { try { @@ -171,13 +171,13 @@ public class MOAIDTrustManager extends IAIKX509TrustManager { } } - throw new SSLConfigurationException("config.28", new Object[]{certFile.getPath(), e.getMessage()}, e); + //throw new SSLConfigurationException("config.28", new Object[]{certFile.getPath(), e.getMessage()}, e); } finally { if (fis != null) fis.close(); - } + } } // store acceptedServerCertificates |