-
-
Notifications
You must be signed in to change notification settings - Fork 182
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 not working in eXist 5.2 #3356
Comments
@jmcneal9 The error message in the stack trace you provided hints to a problem with your keystore: |
I only have a single cert. This is a fresh install with a single cert in a new keystore. This same keystore works fine in eXist 2.2, 3.4.1, and 4.6.1. While a different platform, it looks like there was a similar issue with Jenkins. https://issues.jenkins-ci.org/browse/JENKINS-60857. Also possibly related - jetty/jetty.project#4385. |
Just to confirm, is your certificate for localhost? |
The cert is for a public domain. It's actively being used for a 2.2 instance. However, I've tested it with localhost as well for 3.4.1, 4.6.1, and just now, 4.71 and it works. In the 5.x builds, I've tried this with 5.1.1 and 5.2 - both throw that error in exist-db-stderr..log. From what I've been reading (mentioned in jetty/jetty.project#4385 - "The change is on purpose throwing to get users to update to use SslContextFactory.Server") In jetty/jetty.project#4425, they were able to resolve the issue by changing: to
Basically, it seems like you're supposed to specify .Server or .Client for SSLContextFactory, for the latest versions of Jetty. Since I'm configuring the keystore/truststore in jetty-ssl-context.xml, I'm not sure if there is a way to specify Server/Client there. I have found a bit of hope in the Jetty docs where they specify the configuration like: I still need to test this though. |
@jmcneal9 We already switched over to using This was done in PR #3248. Maybe you want to test a snapshot build of that? |
@jmcneal9 I am closing this as we have had no response from you for 1 month. Feel free to re-open if it's still an issue. |
Describe the bug
SSL not working in eXist 5.2
Expected behavior
App fails to load using HTTPS
To Reproduce
Set up a keystore/truststore with a single cert
Restart eXist
load the app in a browser using HTTPS like https://localhost/exist/apps/myApp/index.html
Context (please always complete the following information):
Additional context
conf.xml
? Just SSL configThe text was updated successfully, but these errors were encountered: