#50336 [NEW]: [TBD] for server name indication support in openssl

From: Date: Mon, 30 Nov 2009 15:33:43 +0000
Subject: #50336 [NEW]: [TBD] for server name indication support in openssl
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3367@lists.php.net to get a copy of this message
From: lbarnaud@php.net Operating system: PHP version: 5.3SVN-2009-11-30 (snap) PHP Bug Type: Documentation problem Bug description: [TBD] for server name indication support in openssl Description: ------------ Document sni support in openssl. Since 5.3.2. New SSL context options : - SNI_enabled : Set to FALSE to disable SNI support (enabled by default) - SNI_server_name : If not set, the server name will be guessed from the stream URL (e.g. https://example.com/ will use example.com as hostname.), else the given name will be used. SNI is to SSL/TLS what the Host header is to HTTP : it allows multiple certificates on the same IP address. As for HTTP virtual hosts, this should be totaly transparent in most cases. Context options allows more control, e.g. : $context = stream_context_create(array( 'ssl' => array('SNI_server_name' => 'foo.example.com'), 'http' => array('header' => 'Host: foo.example.com'), )); file_get_contents('https://127.0.0.1/', false, $context); OpenSSL >= 0.9.8j supports SNI (by default since OpenSSL 0.9.8k). New constant : OPENSSL_TLSEXT_SERVER_NAME is defined if there is support for SNI. -- Edit bug report at http://bugs.php.net/?id=50336&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50336&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50336&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50336&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50336&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50336&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50336&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50336&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50336&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50336&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50336&r=support Expected behavior: http://bugs.php.net/fix.php?id=50336&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50336&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50336&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50336&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50336&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50336&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50336&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50336&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50336&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50336&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50336&r=mysqlcfg

« previous php.doc.bugs (#3367) next »