Skip to content
Snippets Groups Projects
Commit 0e5dd4c6 authored by Henry Borasch's avatar Henry Borasch
Browse files

moved test certificates to other module, where it is actually needed

parent 2b7e497d
No related branches found
No related tags found
1 merge request!117Feature/808 validate root certificates
...@@ -239,17 +239,17 @@ public class DefaultValidationService implements ValidationService { ...@@ -239,17 +239,17 @@ public class DefaultValidationService implements ValidationService {
private List<String> loadTrustedRootCertificates() { private List<String> loadTrustedRootCertificates() {
List<X509Certificate> trustedRootCertificates = rootCertificates.stream() List<String> trustedRootCertificates = rootCertificates.stream()
.map(FileUtil::convertToX509Certificate).collect(Collectors.toList()); .map(FileUtil::convertToX509Certificate)
List<String> encodedCertificates = trustedRootCertificates.stream().map(cert -> { .map(cert -> {
try { try {
return Base64.encode(cert.getEncoded()).toString(); return Base64.encode(cert.getEncoded()).toString();
} catch (CertificateEncodingException e) { } catch (CertificateEncodingException e) {
throw new RootCertificateException(e); throw new RootCertificateException(e);
} }
}).collect(Collectors.toList()); }).collect(Collectors.toList());
return encodedCertificates; return trustedRootCertificates;
} }
private boolean isProxySet() { private boolean isProxySet() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment