Skip to content
Snippets Groups Projects
Commit 84b5cc6e authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Fix license check

Change-Id: I93360cb60fa19d1ef59c28f80fb3ab2ef8d6698b
parent 35666608
No related branches found
No related tags found
No related merge requests found
......@@ -69,18 +69,16 @@ public class LicenseService {
}
try {
certificate.verify(caCertificate.getPublicKey());
//If all these checks have passed then:
Server.activated.set(true);
log.info("Server is activated with valid license: {}", Server.activated.get());
Server.appUpdater.setLicense(certificate,privateKey);
log.info("Successfully set license inside updater module!");
}
catch (Exception e) {
log.error("The license file you have provided could not be verified!");
Server.activated.set(false);
}
//If all these checks have passed then:
Server.activated.set(true);
licenseInformation = X509Utils.extractSubscriptionTypeFromCertificate(certificate);
log.info("Server is activated with valid license: {}", Server.activated.get());
log.info("License type: {}",licenseInformation.getType());
Server.appUpdater.setLicense(certificate,privateKey);
log.info("Successfully set license inside updater module!");
}
catch (Exception e){
log.error("A generic occurred while trying to load your license or your license could not be found");
......
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