I'm working on an AIR project that uses a Timer to fetch data w/an HTTPService. 
 The UI 
for the appliance uses a self signed SSL certificate.

As expected, the AIR app throws up a warning dialog about not trusting the self 
signed 
cert.  But I get different behavior on this between Windows and Mac OS:

- On the Mac OS X 10.5, I am warned only once about the cert.

- On Windows XP, I am warned each time an HTTPService is used (when 
authenticating 
w/the appliance, and each time the Timer triggers an update).

I know I can "install" the certificate in the browser to make it trust it... 
but the average 
user of the appliance wouldn't necessarily know this.

This seems like a bug, any thoughts or suggestions would be greatly appreciated.

Here's a really simple app that exhibits this behavior. Clicking the "Reload" 
button on Win 
XP generates the cert warning each time, but not on Mac OS.  Sorry, the URL 
below is for a 
private IP ... the example is so simple, you don't need to run it anyway :)


<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
        width="800" height="600"
        layout="vertical"
        creationComplete="init()" viewSourceURL="srcview/index.html">
        
        <mx:Script>
                <![CDATA[
                        import mx.rpc.events.ResultEvent;

                        public function init():void {
                                
loginService.addEventListener(ResultEvent.RESULT, handleResult);
                                loginService.send();
                        }
                        
                        public function handleResult(event:ResultEvent):void {
                                pageContentsTA.text = event.result.toString();
                        }
                        
                        public function handleReload(event:MouseEvent):void {
                                loginService.send();
                        }
                ]]>
        </mx:Script>
        
        <mx:HTTPService id="loginService" url="https://10.0.86.29/"; 
resultFormat="text" />
        <mx:Button id="reloadBN" label="Reload" click="handleReload(event)" />
        <mx:TextArea id="pageContentsTA" width="100%" height="500" />

</mx:WindowedApplication>

Cheers,
Sunil

Reply via email to