File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
share/server/core/classes Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
1.9.34
2
2
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
4
4
parameters for HTTPS certificate verification (#317 Thanks to loocars)
5
5
6
6
Frontend:
Original file line number Diff line number Diff line change @@ -88,6 +88,12 @@ class GlobalBackendmkbi implements GlobalBackendInterface {
88
88
'match ' => MATCH_BOOLEAN ,
89
89
'field_type ' => 'boolean ' ,
90
90
),
91
+ 'verify_depth ' => Array (
92
+ 'must ' => 0 ,
93
+ 'editable ' => 1 ,
94
+ 'default ' => 3 ,
95
+ 'match ' => MATCH_INTEGER ,
96
+ ),
91
97
'ca_path ' => Array (
92
98
'must ' => 0 ,
93
99
'editable ' => 1 ,
@@ -122,7 +128,7 @@ public function __construct($backendId) {
122
128
$ sslContext = array (
123
129
'verify_peer ' => true ,
124
130
'verify_peer_name ' => false ,
125
- 'verify_depth ' => 1 ,
131
+ 'verify_depth ' => cfg ( ' backend_ ' . $ backendId , ' verify_depth ' ) ,
126
132
);
127
133
$ ca_path = cfg ('backend_ ' .$ backendId , 'ca_path ' );
128
134
if ($ ca_path ) {
You can’t perform that action at this time.
0 commit comments