Question
Help with SecureSocket connections..
I'm writing an Air app and debugging it in FlashCS5.5..
I'm using https://paypal.com just as a sample, but it's returning an invalid cert?
What's going wrong here?
| public function mySecureSocket() { | |||
| _paymentSocket = new SecureSocket(); | |||
| _hostName = "https://paypal.com"; | |||
| _paymentSocket.connect(_hostName, 443); | |||
} |
| private function onIOError(e:IOErrorEvent):void { | |||
| trace (_paymentSocket.serverCertificateStatus); | |||
| trace (e); | |||
| } |
Output:
invalid
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: https://paypal.com" errorID=2031]
