Skip to content
Browse files

Fixing a bug that wss doesn't accept officialy signed certificates.

  • Loading branch information...
1 parent fc5d536 commit 29e7ed395724953f827a18ac582ac562e99e4920 @gimite gimite committed Aug 22, 2010
Showing with 1 addition and 1 deletion.
  1. BIN WebSocketMain.swf
  2. +1 −1 flash-src/WebSocket.as
View
BIN WebSocketMain.swf
Binary file not shown.
View
2 flash-src/WebSocket.as
@@ -89,7 +89,7 @@ public class WebSocket extends EventDispatcher {
tlsConfig= new TLSConfig(TLSEngine.CLIENT,
null, null, null, null, null,
TLSSecurityParameters.PROTOCOL_VERSION);
- tlsConfig.trustSelfSignedCertificates = true;
+ tlsConfig.trustAllCertificates = true;
tlsConfig.ignoreCommonNameMismatch = true;
tlsSocket = new TLSSocket();
tlsSocket.addEventListener(ProgressEvent.SOCKET_DATA, onSocketData);

0 comments on commit 29e7ed3

Please sign in to comment.
Something went wrong with that request. Please try again.