WinkMeter / flutter_socket_io

Socket IO plugin for Flutter
MIT License
49 stars 49 forks source link

certificate error #1

Open sandeepkumarmishra354 opened 5 years ago

sandeepkumarmishra354 commented 5 years ago

can't connect to server... throwing exception 'connect error' D/FlutterSocketIoPlugin: SocketIO(28381): connect_error: [{"cause":{"cause":{"cause":{"certPath":{"mCertificates":[{"hash":-409637321,"type":"X.509"}],"type":"X.509"},"index":-1,"reason":"UNSPECIFIED","detailMessage":"Trust anchor for certification pathnot found.","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"websocket error","stackTrace":[],"suppressedExceptions":[]}] I/flutter (28381): [https://192.168.225.103:80/, FunctionId@60951892, FunctionId@60951892] D/FlutterSocketIoPlugin: SocketIO(28381): reconnect_error: [{"cause":{"cause":{"cause":{"cause":{"certPath":{"mCertificates":[{"hash":-409637321,"type":"X.509"}],"type":"X.509"},"index":-1,"reason":"UNSPECIFIED","detailMessage":"Trust anchor for certification path not found.","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"websocket error","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"Connection error","stackTrace":[],"suppressedExceptions":[]}]

dinhha commented 5 years ago

Are you running HTTPS on localhost? Looks your localhost have invalid SSL certificate

sandeepkumarmishra354 commented 5 years ago

yes, i'm running HTTPS on local host with self signed certificate.... is there any way to accept self signed certificates

LSmint commented 5 years ago

@sandeepkumarmishra354 can you get solution on this?

thealmamun commented 4 years ago

Almost 2 years, still it's open, is there any solution?