Index: trunk/wp-includes/class-IXR.php
===================================================================
--- trunk/wp-includes/class-IXR.php	(revision 17369)
+++ trunk/wp-includes/class-IXR.php	(working copy)
@@ -622,6 +622,10 @@
             if (!$this->path) {
                 $this->path = '/';
             }
+            // Use port 443 for https URLs
+            if ($bits['scheme'] == 'https') {
+                $this->port = 443;
+            }
         } else {
             $this->server = $server;
             $this->path = $path;
@@ -659,6 +663,10 @@
             echo '<pre class="ixr_request">'.htmlspecialchars($request)."\n</pre>\n\n";
         }
 
+        // Create an SSL connection if the port is 443
+        if ($this->port == 443 && in_array('ssl', stream_get_transports())) {
+            $this->server = 'ssl://' . $this->server;
+        }
         if ($this->timeout) {
             $fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
         } else {
