Skip to content

Commit 96d718b

Browse files
metsmasvenzik
authored andcommitted
All ID-Card certificates are expired in EstEID 2015
WE2-839 Signed-off-by: Raul Metsma <[email protected]>
1 parent b22e12e commit 96d718b

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

example/src/main/java/eu/webeid/example/config/ValidationConfiguration.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,11 @@ public X509Certificate[] loadTrustedCACertificatesFromTrustStore() {
126126
@Bean
127127
public AuthTokenValidator validator() {
128128
try {
129-
AuthTokenValidatorBuilder validatorBuilder = new AuthTokenValidatorBuilder()
129+
return new AuthTokenValidatorBuilder()
130130
.withSiteOrigin(URI.create(yamlConfig().getLocalOrigin()))
131131
.withTrustedCertificateAuthorities(loadTrustedCACertificatesFromCerFiles())
132-
.withTrustedCertificateAuthorities(loadTrustedCACertificatesFromTrustStore());
133-
if (activeProfile.equals("dev")) {
134-
// Enable support for ESTEID 2015 test certificates in development profile.
135-
validatorBuilder = validatorBuilder.withNonceDisabledOcspUrls(URI.create("http://aia.demo.sk.ee/esteid2015"));
136-
}
137-
return validatorBuilder.build();
132+
.withTrustedCertificateAuthorities(loadTrustedCACertificatesFromTrustStore())
133+
.build();
138134
} catch (JceException e) {
139135
throw new RuntimeException("Error building the Web eID auth token validator.", e);
140136
}
-1.63 KB
Binary file not shown.
-1.61 KB
Binary file not shown.

0 commit comments

Comments
 (0)