From 0c52a2b81c3cd6c604a12681f34bb37a1e527028 Mon Sep 17 00:00:00 2001 From: Ties de Kock Date: Thu, 14 Dec 2023 12:02:28 +0100 Subject: [PATCH] Fix bug in manifest thisUpdate/nextUpdate calculation --- README.md | 1 + src/main/java/net/ripe/rpki/ta/TA.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 141f222..fa7a5d7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/main/java/net/ripe/rpki/ta/TA.java b/src/main/java/net/ripe/rpki/ta/TA.java index fb9e49e..9452a0c 100644 --- a/src/main/java/net/ripe/rpki/ta/TA.java +++ b/src/main/java/net/ripe/rpki/ta/TA.java @@ -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()); }