Skip to content

Commit dc738a2

Browse files
Mikk BachmannMikk Bachmann
authored andcommitted
chore: merge to dev-8.x fixes for free and paid timestamping and ocsp services security server ui changes
refs: XRDDEV-2980
1 parent 6c78868 commit dc738a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/security-server/admin-service/application/src/main/java/org/niis/xroad/securityserver/restapi/service/CertificateAuthorityService.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import org.niis.xroad.common.exception.InternalServerErrorException;
4343
import org.niis.xroad.globalconf.GlobalConfProvider;
4444
import org.niis.xroad.globalconf.model.ApprovedCAInfo;
45-
import org.niis.xroad.globalconf.model.CostType;
4645
import org.niis.xroad.proxy.proto.ProxyRpcClient;
4746
import org.niis.xroad.restapi.util.FormatUtils;
4847
import org.niis.xroad.securityserver.restapi.cache.CurrentSecurityServerId;
@@ -213,11 +212,7 @@ private ApprovedCaDto buildCertificateAuthorityDto(
213212
builder.subjectDnPath(subjectDnPath);
214213
builder.topCa(subjectDnPath.size() <= 1 && subjectName.equals(subjectDnPath.getFirst()));
215214

216-
Map<String, CostType> ocspResponderAddressesAndCostTypes = globalConfService.getOcspResponderAddressesAndCostTypes(certificate);
217-
ocspResponderAddressesAndCostTypes.put("http://ocsp.int-xroad.net", CostType.FREE); // default OCSP responder
218-
ocspResponderAddressesAndCostTypes.put("http://ocsp.int-xroad.net/ocsp2", CostType.PAID); // default OCSP responder
219-
ocspResponderAddressesAndCostTypes.put("http://ocsp.int-xroad.net/ocsp3", CostType.UNDEFINED); // default OCSP responder
220-
builder.ocspUrlsAndCostTypes(ocspResponderAddressesAndCostTypes);
215+
builder.ocspUrlsAndCostTypes(globalConfService.getOcspResponderAddressesAndCostTypes(certificate));
221216

222217
return builder.build();
223218
}

0 commit comments

Comments
 (0)