Skip to content

Commit f795de3

Browse files
loocarsLarsMichelsen
authored andcommitted
FIX: BI-Backend add configuration options for depth of SSL verification
1 parent b871548 commit f795de3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
1.9.34
22
Core:
3-
* Checkmk BI backend: Add verify_peer and ca_path options to configure
3+
* Checkmk BI backend: Add verify_peer, ca_path and verify_depth options to configure
44
parameters for HTTPS certificate verification (#317 Thanks to loocars)
55

66
Frontend:

share/server/core/classes/GlobalBackendmkbi.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class GlobalBackendmkbi implements GlobalBackendInterface {
8888
'match' => MATCH_BOOLEAN,
8989
'field_type' => 'boolean',
9090
),
91+
'verify_depth' => Array(
92+
'must' => 0,
93+
'editable' => 1,
94+
'default' => 3,
95+
'match' => MATCH_INTEGER,
96+
),
9197
'ca_path' => Array(
9298
'must' => 0,
9399
'editable' => 1,
@@ -122,7 +128,7 @@ public function __construct($backendId) {
122128
$sslContext = array(
123129
'verify_peer' => true,
124130
'verify_peer_name' => false,
125-
'verify_depth' => 1,
131+
'verify_depth' => cfg('backend_'.$backendId, 'verify_depth'),
126132
);
127133
$ca_path = cfg('backend_'.$backendId, 'ca_path');
128134
if ($ca_path) {

0 commit comments

Comments
 (0)