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

http: TLS handshake error #536

Open
nyxneuf opened this issue Jan 25, 2024 · 5 comments
Open

http: TLS handshake error #536

nyxneuf opened this issue Jan 25, 2024 · 5 comments

Comments

@nyxneuf
Copy link

nyxneuf commented Jan 25, 2024

v2.3.15

[Case#1]

config.toml

monitoring-ssl-cert = "/app/mrm/etc/tls/server.crt"
monitoring-ssl-key = "/app/mrm/etc/tls/server.key"

[systemctl Log]

20240125_110847

[Case#2]

config.toml

#monitoring-ssl-cert = "/app/mrm/etc/tls/server.crt"
#monitoring-ssl-key = "/app/mrm/etc/tls/server.key"

[Log]

time="2024-01-25 10:48:49" level=info msg="No TLS certificate provided using generated key (/tmp/key.pem1148883779) and certificate (/tmp/cert.pem3623622479)"
time="2024-01-25 10:48:49" level=info msg="Starting HTTP & JWT API on 0.0.0.0:10005"
time="2024-01-25 10:48:49" level=info msg="starting multiplexed TLS HTTP/2.0 and HTTP/1.1 Gateway server: 0.0.0.0:10005"

==============

If you set monitoring-ssl-cert and monitoring-ssl-key,
http: TLS handshake error continues to be printed.
What's the problem?

@caffeinated92
Copy link
Collaborator

caffeinated92 commented Jan 25, 2024

You need to clear the browser cache. Sometimes it still save the old cached files. And refresh the page again.

Are you still having the same tls handshake error?

@svaroqui
Copy link
Collaborator

svaroqui commented Jan 25, 2024

Yes those are other very short TTL certificate for JWT they expire with timeout or if replication-manager is restarted because the browser still polling the server it come back with a bad JWT token and in result we get that error according to some dev it can not be fixed the way it work with rpc

@svaroqui
Copy link
Collaborator

svaroqui commented Jan 30, 2024

Hello nyxneuf Can you please provide your full config without password to try to reproduce and the log when you start with tls enabled

@nyxneuf
Copy link
Author

nyxneuf commented Jan 31, 2024

OS : Rocky Linux 8.9 x86_64
SRM : v.2.3.15
cluster1.toml.txt
config.toml.txt
os_messages.txt
replication-manager.log

It doesn't seem to be a problem with v.2.3.
A tls error occurs in all versions.

@ahfa92
Copy link
Contributor

ahfa92 commented Jan 31, 2024

Usually this is a general error when the browser cached the old file.
You just need to clear the browser cache and refresh when you restarted the SRM.

Can you give us the sample or description of the certificate i.e. wildcard, domain or else?

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

No branches or pull requests

4 participants