Comments (3)
You would need a custom Jetty bean to trigger your custom code, and a Jetty module that defines any dependencies to other modules (like ssl), along with an XML entry. Then you would have an XML to add the bean to the Server or SslContextFactory.
Similar to
- https://github.com/jetty/jetty.project/blob/jetty-12.0.x/jetty-core/jetty-server/src/main/config/modules/ssl-reload.mod
- https://github.com/jetty/jetty.project/blob/jetty-12.0.x/jetty-core/jetty-server/src/main/config/etc/jetty-ssl-context-reload.xml
- https://github.com/jetty/jetty.project/blob/jetty-12.0.x/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/ssl/KeyStoreScanner.java
from jetty.project.
Sounds very custom.
If you have access to the SslContextFactory
in your code, you can do the following.
SslContextFactory.Server sslContextFactory = getSslContextFactory();
sslContextFactory.reload(ssl ->
{
ssl.setKeyStorePath("/path/to/alt/keystore.p12");
ssl.setKeyStorePassword("storepwd");
ssl.setTrustStorePath("/path/to/alt/truststore.p12");
ssl.setTrustStorePassword("storepwd");
// and any other things you want the SslContextFacotry to change
ssl.setEndpointIdentificationAlgorithm(null);
});
Up to you to determine how to trigger that code.
from jetty.project.
I am running standalone Jetty using XML configuration. Is it possible to do something similar there ?
from jetty.project.
Related Issues (20)
- README link is broken HOT 6
- Server resources are not found if the server is subclassed in a different package
- Remove old documentation resources.
- HttpChannelState does not satisfy the contract of Content.Source HOT 2
- Issue with Configuring Specific Static Resources in the same base directory ee10 jetty 12.0.10 HOT 18
- Jetty 12 Core SecurityHandler relies on ContextHandler HOT 2
- GzipHandler switches response transfer encoding to chunked HOT 4
- DefaultServlet configured for a subdir responds with 404 on existing files HOT 9
- Behavioural change in Jetty 12: POST /non-existing returns 405, instead of 404 (GET /non-existing still returns 404) HOT 3
- Jetty 12: 400: Ambiguous URI path encoding for path <%=FOO%>~1 (encoded: %3C%25%3DFOO%25%3E%7E1) HOT 10
- mtls not working with http/3 HOT 2
- Hello World Example Fails to Run HOT 3
- Client hangs despite setting timeout
- XmlConfiguration should prefer exact class match rather than interface match HOT 1
- Type Mismatch between OpenIdAuthenticator and Authenticator in Jetty 12 EE9 HOT 2
- Un-deprecate WebAppClassLoading.addHiddenClasses(Attributes attributes, String... patterns) method
- ConcurrentModificationException when using jetty-maven-plugin in Jetty 12 HOT 2
- Start throws ConcurrentModificationException if an `eeX-webapp.ini` exists in `start.d` with a command line like: `java -jar ../jetty-home/start.jar --module=server,http,ee8-webapp,ee8-deploy` HOT 2
- 11 -> 12 Migration guide wrongly suggests Request.getHttpURI as replacement for HttpServletRequest.getRequestURL
- Update pom.xml and configure.dtd locations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetty.project.