mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-30 08:04:05 +00:00
Similar to the #154 issue, adding multiple delta platform certificates was blocked because there wasn't a check on if the certificate was a base or not. (#157)
This commit is contained in:
parent
ecd0ab5708
commit
e69bb48799
@ -678,6 +678,7 @@ public class CertificateRequestPageController extends PageController<NoPageParam
|
||||
if (existingCertificate == null) {
|
||||
if (certificateType.equals(PLATFORMCREDENTIAL)) {
|
||||
PlatformCredential platformCertificate = (PlatformCredential) certificate;
|
||||
if (platformCertificate.isBase()) {
|
||||
List<PlatformCredential> sharedCertificates = getCertificateByBoardSN(
|
||||
certificateType,
|
||||
platformCertificate.getPlatformSerial(),
|
||||
@ -698,6 +699,7 @@ public class CertificateRequestPageController extends PageController<NoPageParam
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
certificateManager.save(certificate);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user