Coder Social home page Coder Social logo

Comments (8)

Chigusa0w0 avatar Chigusa0w0 commented on May 16, 2024

@xiaoxiongke The first one is correct. But the error log indicates that you are not facing an issue with cert file. The true problem is that Trojan CANNOT open and read config.json. This may caused by wrong file path or insufficient file privilege. Please check you have correctly set these values.

from trojan.

GreaterFire avatar GreaterFire commented on May 16, 2024

@xiaoxiongke Try running the start.command provided. Also, you should use a certificate to put in the config file, not a private key.

from trojan.

zeku2022 avatar zeku2022 commented on May 16, 2024

@xiaoxiongke The first one is correct. But the error log indicates that you are not facing an issue with cert file. The true problem is that Trojan CANNOT open and read config.json. This may caused by wrong file path or insufficient file privilege. Please check you have correctly set these values.

The config.json' file content shows below, I think it doesn't have any problems.And the file path or privilege are all ok.
{ "run_type": "client", "local_addr": "127.0.0.1", "local_port": 10800, "remote_addr": "XXXXXXXX", "remote_port": 443, "password": [ "XXXlovetrojan" ], "append_payload": true, "log_level": 1, "ssl": { "verify": true, "verify_hostname": true, "cert": "/etc/ssl/cert.pem", "cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305-SHA256:ECDHE-RSA-CHACHA20-POLY1305-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:RSA-AES128-GCM-SHA256:RSA-AES256-GCM-SHA384:RSA-AES128-SHA:RSA-AES256-SHA:RSA-3DES-EDE-SHA", "sni": "", "alpn": [ "h2", "http/1.1" ], "reuse_session": true, "session_ticket": false, "curves": "" }, "tcp": { "no_delay": true, "keep_alive": true, "fast_open": false, "fast_open_qlen": 20 } }

from trojan.

zeku2022 avatar zeku2022 commented on May 16, 2024

@xiaoxiongke Try running the start.command provided. Also, you should use a certificate to put in the config file, not a private key.

Sorry,there' no start.command....

from trojan.

GreaterFire avatar GreaterFire commented on May 16, 2024

@xiaoxiongke Launch a terminal, cd to the trojan directory, and run ./trojan config.json

from trojan.

zeku2022 avatar zeku2022 commented on May 16, 2024

@xiaoxiongke Launch a terminal, cd to the trojan directory, and run ./trojan config.json

Thanks,I've tried.But it seems the cert config is wrong...
[FATAL] trojan service (client) started at 127.0.0.1:1080 [2019-02-22 10:46:38] [INFO] 127.0.0.1:51916 requested connection to www.youtube.com:443 [2019-02-22 10:46:38] [ERROR] 127.0.0.1:51916 SSL handshake failed with xxxxxxx.xyz:443: certificate verify failed [2019-02-22 10:46:38] [INFO] 127.0.0.1:51916 disconnected, 0 bytes received, 517 bytes sent, lasted for 0 seconds

from trojan.

zeku2022 avatar zeku2022 commented on May 16, 2024

@xiaoxiongke Launch a terminal, cd to the trojan directory, and run ./trojan config.json

Finally I edit the config.json file,and change "cert": "/etc/ssl/cert.pem" to "cert": "private.crt",then it runs very well....

from trojan.

gaojiweish avatar gaojiweish commented on May 16, 2024

masOS catalin run is the same error, don't know you solved no?

from trojan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.