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

Cipher Suite negotiation failure in LW8 / ssl-ctx is not initialized #224

Closed
mdbergmann opened this issue Jan 20, 2024 · 6 comments
Closed

Comments

@mdbergmann
Copy link
Contributor

I'm receiving the following error when trying to connect with a client to hunchentoot with SSL acceptor.

[2024-01-20 13:07:04 [ERROR]] Error while processing connection: Error when reading from #<COMM:SOCKET-STREAM 80100F88CB> : "Cipher Suite negotiation failure" [-9801].

I've tracked it down to ctx-configure-callback function, as set up by attach-ssl not being called.
Despite initialize-connection-stream and make-ssl-server-stream are called (in ssl.lisp).

Anyone got an idea?

@hanshuebner
Copy link
Member

This looks like an SSL version incompatibility between your server and your client. Is it possible that your server uses a very old SSL version that does not support modern ciphers? Can you look at the debug logs on the server side to determine what TLS version is being used?

@mdbergmann
Copy link
Contributor Author

Well, client and server is on the same host. It works with SBCL and cl+ssl.
For me it seems like as if the ssl-ctx is not configured with the certificate and private key I have defined.
Or do you think that the handshake and cipher negotiation is happening before the ctx-configure-callback?
I was thinking it might also be a problem with client (Drakma), but I get the same error when trying to connect with a browser.

@hanshuebner
Copy link
Member

What is the platform that it does not work with? From the error message, I would suspect LispWorks. Is it possible that LispWorks uses a different (outdated) version of OpenSSL?

@mdbergmann
Copy link
Contributor Author

Hmm, it's LispWorks 8.0.1. The latest. I'll try to check what version they have bundled.
I'll try some more with pure LispWorks API to see if it actually works there.

@mdbergmann
Copy link
Contributor Author

Please check PR #225.
While this works, I do not know why the previous variant does not work.

@mdbergmann mdbergmann changed the title Cipher Suite negotiation failure in LW8 Cipher Suite negotiation failure in LW8 / ssl-ctx is not initialized Jan 21, 2024
@mdbergmann
Copy link
Contributor Author

Fixed with #225

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

No branches or pull requests

2 participants