Quantcast
Viewing all articles
Browse latest Browse all 2010

How to handle Client Certificate authentication using URLRequest/URLLoader

Hi All,

 

I developed an AIR Application which communicates with a server. Protocol used for communication is HTTPS, and server has a valid certificate.

So whenever AIR App, communicates with the server, a dialogue box prompts to select the client certificate just as show below.

 

Image may be NSFW.
Clik here to view.
Untitled.png

 

So here what I am looking at is, Any method is available to prevent this prompt.

I have already tried the method of Enabling "Dont Prompt for client certificate selection when only one certificate exists", Of course this method will work only if multiple certificate exists, so what if multiple certificate exists.

 

How an air application can handle that?

 

So any one find any way to handle this. I am using URLRequest for commnicating with server.

 

Here is the code snippet I have used.

 

var request:URLRequest = new URLRequest(url);









request.method = URLRequestMethod.GET;



var urlLoader:URLLoader = new URLLoader();

urlLoader.dataFormat = URLLoaderDataFormat.TEXT;



urlLoader.addEventListener(Event.COMPLETE, loaderCompleteHandler)

urlLoader.addEventListener(Event.OPEN, openHandler);

urlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);



urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);



urlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);//, false, 0, true);

 

Please help me...

 

Thanks

Sanal


Viewing all articles
Browse latest Browse all 2010

Trending Articles