Ayaminn / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

Self-signed cert fails on connect #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a self-signed certificate on your server
2. Try to connect to the server using a TLSSocket

What is the expected output? What do you see instead?
Expected that the certificate would be accepted.  Instead, the cert was
rejected because it was self signed

What version of the product are you using? On what operating system?
Using 1.3 on mac os

Please provide any additional information below.
The code that is rejecting the certificate is in X509Certificate.as at line 79:

if (parent == this) { // pathological case. avoid infinite loop
    return false; // isSigned() returns false if we're self-signed.
}

Original issue reported on code.google.com by SilentCh...@gmail.com on 1 Sep 2009 at 10:05

GoogleCodeExporter commented 9 years ago
You probably should set trustSelfSignedCertificates:Boolean to true in 
TLSConfig.as

Original comment by yuri.ani...@gmail.com on 31 Oct 2009 at 11:32