Overview
Comment: | Gestion SNI dans requêtes https |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
26cd3b021317837ba67f721a14c4839f |
User & Date: | bohwaz on 2014-03-25 14:43:13 |
Other Links: | manifest | tags |
Context
2014-03-26
| ||
16:47 | déterminer automatiquement le délimiteur check-in: cd99ccd274 user: bohwaz tags: trunk | |
2014-03-25
| ||
14:43 | Gestion SNI dans requêtes https check-in: 26cd3b0213 user: bohwaz tags: trunk | |
2014-03-22
| ||
02:19 | Import au format CSV garradin check-in: dd2ab5b039 user: bohwaz tags: trunk | |
Changes
Modified src/include/class.plugin.php from [44c9625a84] to [3d3b394c0f].
305
306
307
308
309
310
311
312
313
314
315
316
317
318
...
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
$context_options = [
'ssl' => [
'verify_peer' => TRUE,
// On vérifie en utilisant le certificat maître de CACert
'cafile' => ROOT . '/include/data/cacert.pem',
'verify_depth' => 5,
'CN_match' => $url['host'],
]
];
$context = stream_context_create($context_options);
try {
$result = file_get_contents(PLUGINS_URL, NULL, $context);
................................................................................
$context_options = [
'ssl' => [
'verify_peer' => TRUE,
'cafile' => ROOT . '/include/data/cacert.pem',
'verify_depth' => 5,
'CN_match' => $url['host'],
]
];
$context = stream_context_create($context_options);
try {
copy($list[$id]['phar'], PLUGINS_PATH . '/' . $id . '.phar', $context);
|
>
>
>
>
>
>
|
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
...
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
|
$context_options = [ 'ssl' => [ 'verify_peer' => TRUE, // On vérifie en utilisant le certificat maître de CACert 'cafile' => ROOT . '/include/data/cacert.pem', 'verify_depth' => 5, 'CN_match' => $url['host'], 'SNI_enabled' => true, 'SNI_server_name' => $url['host'], 'disable_compression' => true, ] ]; $context = stream_context_create($context_options); try { $result = file_get_contents(PLUGINS_URL, NULL, $context); ................................................................................ $context_options = [ 'ssl' => [ 'verify_peer' => TRUE, 'cafile' => ROOT . '/include/data/cacert.pem', 'verify_depth' => 5, 'CN_match' => $url['host'], 'SNI_enabled' => true, 'SNI_server_name' => $url['host'], 'disable_compression' => true, ] ]; $context = stream_context_create($context_options); try { copy($list[$id]['phar'], PLUGINS_PATH . '/' . $id . '.phar', $context); |