Skip to content

Commit f9c48da

Browse files
Merge pull request #98 from daanrijpkemacb/cert-change
Certificate change per environment
2 parents 7cb2e01 + 76f3f36 commit f9c48da

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Validators/WebhookSignatureValidation.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ private function getKeyFileName(): string
7171
// Define the default filename
7272
$prefix = 'webhook_bluem_nl_';
7373

74-
// 2025 certificate on testing from July 17th, 8:30 CET time
75-
if ( ( $current_date === "2025-07-17" && $current_time >= "6:30" ) || $current_date > "2025-07-17") {
74+
// 2025 certificate on production from July 18th, 8:30 CET time
75+
if ($this->env === BLUEM_ENVIRONMENT_PRODUCTION && ( ( $current_date === "2025-07-18" && $current_time >= "08:30" ) || $current_date > "2025-07-18")) {
76+
$timestamp = '20250717';
77+
// 2025 certificate on testing & acceptance from July 17th, 8:30 CET time
78+
} elseif (($this->env === BLUEM_ENVIRONMENT_TESTING || $this->env === BLUEM_ENVIRONMENT_ACCEPTANCE)
79+
&& (($current_date === "2025-07-17" && $current_time >= "6:30") || $current_date > "2025-07-17")) {
7680
$timestamp = '20250717';
7781
} elseif ( ( $current_date === "2024-07-01" && $current_time >= "12:00" ) || $current_date > "2024-07-01") {
7882
$timestamp = '20240701';

0 commit comments

Comments
 (0)