Skip to content

Commit

Permalink
Fix bug in manifest thisUpdate/nextUpdate calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ties committed Dec 14, 2023
1 parent fa7af2f commit 0c52a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Changelog
---------

### main:
* **hotfix** fix bug in manifest this/nextUpdate calculation
* Use the same timestamp for signing all the objects (TA certificate, MFT, CRL)
* Publish docker image to GHCR insetead of dockerhub
* Updated github actions
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/ripe/rpki/ta/TA.java
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ private ManifestCmsBuilder createBasicManifestBuilder(X509ResourceCertificate ee
ValidityPeriod validityPeriod = validityPeriods.manifest();
return new ManifestCmsBuilder().
withCertificate(eeCertificate)
.withNextUpdateTime(validityPeriod.getNotValidBefore())
.withThisUpdateTime(validityPeriod.getNotValidAfter())
.withThisUpdateTime(validityPeriod.getNotValidBefore())
.withNextUpdateTime(validityPeriod.getNotValidAfter())
.withManifestNumber(nextManifestNumber(signCtx.taState))
.withSignatureProvider(getSignatureProvider());
}
Expand Down

0 comments on commit 0c52a2b

Please sign in to comment.