1
0
Fork 0

Add CN_match and SNI_server_name setup to RemoteFilesystem

pull/2745/head
Pádraic Brady 2014-02-23 13:12:44 +00:00
parent 4d5515190f
commit 9412bb427a
1 changed files with 5 additions and 0 deletions

View File

@ -357,6 +357,11 @@ class RemoteFilesystem
$options['http']['header'][] = $header; $options['http']['header'][] = $header;
} }
// Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN
$host = parse_url($originUrl, PHP_URL_HOST);
$this->options['ssl']['CN_match'] = $host;
$this->options['ssl']['SNI_server_name'] = $host;
/** /**
* Setup TLS options CN_match and SNI_server_name based on URL given * Setup TLS options CN_match and SNI_server_name based on URL given
*/ */