Ticket #25007: 25007.lets-see-the-cert.diff
File 25007.lets-see-the-cert.diff, 1.4 KB (added by , 11 years ago) |
---|
-
src/wp-includes/class-http.php
221 221 * @return string|bool Class name for the first transport that claims to support the request. False if no transport claims to support the request. 222 222 */ 223 223 public function _get_first_available_transport( $args, $url = null ) { 224 $request_order = apply_filters( 'http_api_transports', array( ' curl', 'streams' ), $args, $url );224 $request_order = apply_filters( 'http_api_transports', array( 'streams' ), $args, $url ); 225 225 226 226 // Loop over each transport on each HTTP request looking for one which will serve this request's needs 227 227 foreach ( $request_order as $transport ) { … … 751 751 752 752 $context = stream_context_create( array( 753 753 'ssl' => array( 754 'verify_peer' => $ssl_verify,754 'verify_peer' => false, 755 755 //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certficate() 756 'capture_peer_cert' => $ssl_verify,756 'capture_peer_cert' => true, 757 757 'SNI_enabled' => true, 758 758 'cafile' => $r['sslcertificates'], 759 'allow_self_signed' => ! $ssl_verify,759 'allow_self_signed' => true, 760 760 ) 761 761 ) ); 762 762 … … 966 966 return false; 967 967 968 968 $cert = openssl_x509_parse( $context_options['ssl']['peer_certificate'] ); 969 var_dump( $cert ); 969 970 if ( ! $cert ) 970 971 return false; 971 972