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

crypto/tls extreamly slow! #56468

Closed
clarkk opened this issue Oct 28, 2022 · 4 comments
Closed

crypto/tls extreamly slow! #56468

clarkk opened this issue Oct 28, 2022 · 4 comments

Comments

@clarkk
Copy link

clarkk commented Oct 28, 2022

# go version
go version go1.19.2 linux/amd64

I have a simple HTTP server running TLS. When it's exposed directly to the internet it can only handle ~17 req/sec.

If I switch to HTTP and put it behind nginx and let nginx handle TLS, ciphers etc it handles ~100 req/sec

ab -n 100 -c 1

Why have you removed the option to select ciphers when using TLS1.3??

When I test the SSL certs, ciphers etc on the nginx everything is 100% without any vulnerabilities

https://www.ssllabs.com/ssltest/analyze.html

tls1

tls2

tls3

@mateusz834
Copy link
Member

mateusz834 commented Oct 28, 2022

It probably happens because of slow RSA in golang, #20058, try using ECDSA, or switching to BoringSSL

@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2022
@clarkk
Copy link
Author

clarkk commented Oct 28, 2022

@mateusz834 How is it possible to select a preferred list of ciphers in golang with TLS 1.3?

The options are removed from TLS version 1.3

@mateusz834
Copy link
Member

It is not possible by design (all TLS 1.3 cipher suites are really secure).

@golang golang locked and limited conversation to collaborators Oct 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants