Skip to content

Conversation

fregie
Copy link
Contributor

@fregie fregie commented May 24, 2021

处理了一个更新tls证书时的data race问题。
使用了读写锁(sync.RWMutex)和深拷贝。
@p4gefau1t @Loyalsoldier

@Loyalsoldier Loyalsoldier merged commit 7210056 into p4gefau1t:master May 26, 2021
@Loyalsoldier
Copy link
Collaborator

Thanks!

@Loyalsoldier Loyalsoldier mentioned this pull request May 26, 2021
@a1328788808
Copy link

0.10.2服务端报错
github.com/p4gefau1t/trojan-go/tunnel/tls.(*Server).acceptLoop.func1:server.go:142 tls handshake failed | tls: unsupported certificate curve (P-256)

证书是caddy自动申请的
同样配置0.10.0没问题

@aizhihuxiao
Copy link

0.10.2服务端报错
github.com/p4gefau1t/trojan-go/tunnel/tls.(*Server).acceptLoop.func1:server.go:142 tls handshake failed | tls: unsupported certificate curve (P-256)

证书是caddy自动申请的
同样配置0.10.0没问题

我的多台服务器升级后都出现同样的问题,客户端更新了也没解决

@Loyalsoldier
Copy link
Collaborator

RSA 证书有这个问题吗?

@aizhihuxiao
Copy link

RSA 证书有这个问题吗?

没试过,因为一般都是用Caddy,还有一些其他的服务也用到Caddy,所以不大可能会换其他的证书

@ZichengLouche
Copy link

我这边一直使用的都是Let's Encrypt颁发的证书,trojan-go版本从0.8.1-0.9.1一路使用过来都没问题,没想到这次v0.10.2版本一更新,出现了这个重大bug,完全不能使用了,报错:[ERROR] 2021/05/29 11:05:37 github.com/p4gefau1t/trojan-go/tunnel/tls.(*Server).acceptLoop.func1:server.go:142 tls handshake failed | tls: unsupported certificate curve (P-256)。

@Loyalsoldier
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants