AIR 19-22, SecureSocket: certificate is always invalid on Android
When using SecureSocket for SSL connection, connection is established on Windows but not on Android devices: SecureCertificateStatus is "invalid" for any host, even for google.com.
In previous versions of AIR it was not an issue, and in AIR 19 openssl was updated so I believe it has something with it.
Here's the code fore reproducing the issue:
var ss:SecureSocket = new SecureSocket();
ss.addEventListener(Event.CONNECT, connect);
ss.addEventListener(IOErrorEvent.IO_ERROR, ioerror);
ss.connect("google.com", 443);
function ioerror(event:IOErrorEvent):void{
trace(event);
trace(ss.serverCertificateStatus);
trace("Not connected!");
}
function connect(event:Event):void{
trace("Connected!");
}
Is there any solution to make it connectable?
