8 Replies Latest reply on Jul 21, 2010 5:03 PM by Catalin Anastasoaie

    Problem with client certificate based authentication

    pacohernandezg
      Hello.

      We are developing an AIR application that uses client certificates for authentication. We have written a simple test case to show the problem.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">

      <mx:Script>
      <![CDATA[
      import mx.controls.Alert;

      private function responseHandler(): void {
      Alert.show("Response received");
      }
      ]]>
      </mx:Script>

      <mx:HTTPService id="exampleService"
      url="https://www1.aeat.es/pymes1/pacargoi.html"
      showBusyCursor="true"
      result="responseHandler()">
      </mx:HTTPService>

      <mx:Button label="Send" click="exampleService.send()"/>

      </mx:WindowedApplication>

      When we click on the button, it sends the request to the protected page and then (if you have CA emitted certificates) the dialog appears requesting the client certificate. And it works fine.

      But next time we click on the button, the dialog requesting the client certificate appears again.

      Is there a way to stop showing the dialog every time?

      Any help would be very appreciated.

      Thanks a lot for your support.

      Paco.