Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 92be6ebe authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Validate certificate on load to truststore.

parent 4d068d53
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,10 @@ export class AdminTruststoreComponent implements OnInit, OnDestroy, AfterViewIn
this.alertService.error("ERROR: " + certificateRo.actionMessage);
}
this.dataSource.data = this.trustedCertificateList;
// if new cert is added - go to last page
if (certificateRo.status == EntityStatus.NEW) {
this.paginator.lastPage();
}
}
applyFilter(event: Event) {
......
......@@ -76,6 +76,7 @@ public class TruststoreAdminController {
try {
String alias = uiTruststoreService.addCertificate(null, x509Certificate);
certificateRO = uiTruststoreService.convertToRo(x509Certificate);
uiTruststoreService.basicCertificateValidation(x509Certificate, certificateRO);
certificateRO.setAlias(alias);
certificateRO.setStatus(EntityROStatus.NEW.getStatusNumber());
return certificateRO;
......
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