Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL handshake failed #26

Closed
testcaoy7 opened this issue Feb 23, 2018 · 1 comment
Closed

SSL handshake failed #26

testcaoy7 opened this issue Feb 23, 2018 · 1 comment
Assignees

Comments

@testcaoy7
Copy link

I ran a server using certificate issued by Let's Encrypt. And I cannot connect to the server. I always got "SSL handshake failed with ..." error.

Server config:

{
    "run_type": "server",
    "local_addr": "0.0.0.0",
    "local_port": 443,
    "remote_addr": "127.0.0.1",
    "remote_port": 80,
    "password": ["12345678"],
    "log_level": 3,
    "ssl": {
        "cert": "/root/.acme.sh/example.com/fullchain.cer",
        "key": "/root/.acme.sh/example.com/example.com.key",
        "key_password": "",
        "cipher": "ECDHE-RSA-AES128-GCM-SHA256",
        "prefer_server_cipher": true,
        "alpn": ["http/1.1"],
        "reuse_session": true,
        "session_timeout": 300,
        "curves": "brainpoolP256r1",
        "sigalgs": "",
        "dhparam": ""
    }
}

Client config:

{
    "run_type": "client",
    "local_addr": "127.0.0.1",
    "local_port": 1082,
    "remote_addr": "example.com",
    "remote_port": 443,
    "password": ["12345678"],
    "log_level": 1,
    "ssl": {
        "verify": true,
        "verify_hostname": true,
        "cert": "LetsEncrypt-CA.txt",
        "cipher": "ECDHE-RSA-AES128-GCM-SHA256",
        "sni": "example.com",
        "alpn": ["http/1.1"],
        "reuse_session": true,
		"curves": "brainpoolP256r1",
		"sigalgs": ""
    }
}
@testcaoy7
Copy link
Author

Solved. There is an issue in the certificate chain.
However, I do wish Trojan's log output can have more detail other than simple "SSL handshake failed with ..." message.

@GreaterFire GreaterFire self-assigned this Apr 6, 2018
@GreaterFire GreaterFire changed the title SSL handshack failed SSL handshake failed Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants