Comments (8)
@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.
@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.
@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.
@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.
@xiaoxiongke Launch a terminal, cd to the trojan directory, and run ./trojan config.json
from trojan.
@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.
@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.
masOS catalin run is the same error, don't know you solved no?
from trojan.
Related Issues (20)
- linux版本是否不支持sse长链接?
- Does the Linux version not support sse long links
- [BUG]
- 自建Trojan节点突然不正常了 HOT 3
- [BUG] 使用自签名证书服务端启动失败
- [Question] iOS implementation
- [Feature Request] 翻墙用户到查20年,影响三代! HOT 11
- 关于tls in tls被识别的情况 HOT 5
- 按照教程配置,一直报错”valid trojan request structure but possibly incorrect password“,求解 HOT 3
- [BUG]
- [BUG]
- [BUG]
- [BUG]
- [BUG]
- 请教一下大神,使用privoxy+trojan,让客户端可以使用http代理的问题
- Question: how can I connect to trojan server on linux?
- 有没有群聊沟通,QQ、微信类的trojan交流群 HOT 1
- [BUG] Setting the "verify" field in ssl section to false, but still got cert file not found error.
- why my trojan server got signal: 2 when I start trojan service?
- [Feature Request] Plan to support Zero Copy for network packets?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trojan.