--- libsoup-2.24.1/libsoup/soup-session.c.ca-file-env	2008-10-20 09:09:25.000000000 -0400
+++ libsoup-2.24.1/libsoup/soup-session.c	2008-12-02 03:39:06.000000000 -0500
@@ -176,6 +176,13 @@
 	soup_auth_manager_add_type (priv->auth_manager, SOUP_TYPE_AUTH_BASIC);
 	soup_auth_manager_add_type (priv->auth_manager, SOUP_TYPE_AUTH_DIGEST);
 	soup_session_add_feature (session, SOUP_SESSION_FEATURE (priv->auth_manager));
+
+	/* Take a default CA file from the environment - Matt */
+	const gchar *default_ca_file = g_getenv("SOUP_SSL_CA_FILE");
+	if (default_ca_file) {
+		g_message("Default SSL CA file is: %s", default_ca_file);
+		g_object_set(session, SOUP_SESSION_SSL_CA_FILE, default_ca_file, NULL);
+	}
 }
 
 static gboolean
