Highlighted

How to handle Client Certificate authentication using URLRequest/URLLoader

New Here ,
Mar 25, 2014

Copy link to clipboard

Copied

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.

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

TOPICS
Development

Views

293

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to handle Client Certificate authentication using URLRequest/URLLoader

New Here ,
Mar 25, 2014

Copy link to clipboard

Copied

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.

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

TOPICS
Development

Views

294

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 25, 2014 0

Have something to add?

Join the conversation