Skip to main content
October 27, 2011
Question

Help with SecureSocket connections..

  • October 27, 2011
  • 2 replies
  • 1143 views

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]

This topic has been closed for replies.

2 replies

Known Participant
March 8, 2017

This is a very big issue for us as well for all Android applications using secureSocket.  Right now it shows up as invalid every time and is seriously affecting our ability to deliver apps for our clients.

October 28, 2011

Hello,

Does your application run on PCs or iOS device?

Thanks!

Zetta
Known Participant
February 28, 2014

I realize this is an old post, but I'm also having trouble using socket with a secure site.  Was there any resolution to this? 

Thankyou.