[Spice-devel] About spice-xpi ssl problem

chieh chieh at infinitiessoft.com
Thu Jun 23 21:49:46 PDT 2011


Hi all:

Recently, I test spice-xpi for firefox. I can connect to RHEVM User Portal. However, I cannot connect
remote vm using this test script :

-----
<!DOCTYPE html>
<html>
<head>
<title>SPICE Plugin Test</title>
<script type="text/javascript">
	function connectvm()
	{
		var ip = String("192.168.0.100");
		var sport = String("5890");
		var passwd = String("1234");
		var channels = String("all");
		var spice = document.embeds[0];

		spice.hostIP = ip;
		spice.SecurePort = sport;
		spice.SSLChannels = channels;
		spice.Password = passwd;
		spice.fullScreen = true;
		pluginobj.connect();
	}
</script>
</head>
<body>
        <p>
    	<embed type="application/x-spice">
        <button onclick='connectvm()'>connect to VM</button>
        </p>
        <p>
        	If the plugin is working correctly, a click on the button should open spice client.
        </p>
</body>
</html>
-----
 
When I run this test, I will get ssl error message :

RedPeer::connect_secure: Connected to 192.168.0.100 5890 
RedPeer::connect_secure: SSL_CTX_load_verify_locations failed CA_file=/tmp/truststore.pem-RC3wk4
RedChannel::run SSL Error:
main: Spice client terminated (exitcode = 7)

However, I can connect to vm successfully using command line :

$ spicec -h 192.168.0.100 -s 5890 --secure-channels all -w 1234

Can someone help me? Thanks.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110624/28851460/attachment.htm>


More information about the Spice-devel mailing list