Skip to main content
Oct 27, 2011 8:07 PM UTC
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]

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Known Participant
Mar 8, 2017 9:18 PM UTC

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.

Translate
Oct 28, 2011 2:03 AM UTC

Hello,

Does your application run on PCs or iOS device?

Thanks!

Translate
Zetta
Known Participant
Feb 28, 2014 10:22 PM UTC

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.

Translate