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

test-keystore.p12 is no longer packaged in jetty-home #7062

Closed
joakime opened this issue Oct 29, 2021 · 3 comments · Fixed by #7102
Closed

test-keystore.p12 is no longer packaged in jetty-home #7062

joakime opened this issue Oct 29, 2021 · 3 comments · Fixed by #7102
Labels
Bug For general bugs on Jetty side

Comments

@joakime
Copy link
Contributor

joakime commented Oct 29, 2021

Jetty version(s)
10.0.7

Java version/vendor (use: java -version)
All

OS type/version
All

Description

When enabling the test-keystore module, the actual test keystore is not put into place.
In fact, it's not even present in the jetty-home artifact to be able to be put into place.

The test-keystore.mod refers to it like this ...

https://github.com/eclipse/jetty.project/blob/da8a4553af9dd84080931fa0f8c678cd2d60f3d9/jetty-keystore/src/main/config/modules/test-keystore.mod#L24-L29

The file does exist, and is in the appropriate src/main/config tree.

https://github.com/eclipse/jetty.project/blob/jetty-10.0.7/jetty-server/src/main/config/modules/test-keystore/test-keystore.p12

How to reproduce?

[bases]$ mkdir ssl10test
[bases]$ cd ssl10test/
[ssl10test]$ java -jar ../../jetty-home-10.0.7/start.jar --add-modules=https,test-keystore
INFO  : mkdir ${jetty.base}/start.d
INFO  : server          transitively enabled, ini template available with --add-module=server
INFO  : logging-jetty   transitively enabled
INFO  : test-keystore   initialized in ${jetty.base}/start.d/test-keystore.ini
INFO  : resources       transitively enabled
INFO  : https           initialized in ${jetty.base}/start.d/https.ini
INFO  : ssl             transitively enabled, ini template available with --add-module=ssl
INFO  : threadpool      transitively enabled, ini template available with --add-module=threadpool
INFO  : logging/slf4j   transitive provider of logging/slf4j for logging-jetty
INFO  : logging/slf4j   dynamic dependency of logging-jetty
INFO  : bytebufferpool  transitively enabled, ini template available with --add-module=bytebufferpool
INFO  : mkdir ${jetty.base}/resources
INFO  : copy ${jetty.home}/modules/logging/jetty/resources/jetty-logging.properties to ${jetty.base}/resources/jetty-logging.properties
INFO  : mkdir ${jetty.base}/lib/bouncycastle
INFO  : copy /home/joakim/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.62/bcpkix-jdk15on-1.62.jar to ${jetty.base}/lib/bouncycastle/bcpkix-jdk15on-1.62.jar
INFO  : copy /home/joakim/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.62/bcprov-jdk15on-1.62.jar to ${jetty.base}/lib/bouncycastle/bcprov-jdk15on-1.62.jar
INFO  : Base directory was modified
[ssl10test]$ tree -F
.
├── lib/
│   └── bouncycastle/
│       ├── bcpkix-jdk15on-1.62.jar
│       └── bcprov-jdk15on-1.62.jar
├── resources/
│   └── jetty-logging.properties
└── start.d/
    ├── https.ini
    └── test-keystore.ini

4 directories, 5 files

Notice that etc/test-keystore.p12 is missing.

@joakime joakime added the Bug For general bugs on Jetty side label Oct 29, 2021
@lachlan-roberts
Copy link
Contributor

@joakime the test-keystore module generates a test keystore when the server is started and deletes on exit. It uses the properties from the ini file to generate the keystore.

I just tested this and it is still working as expected.

@janbartel
Copy link
Contributor

Closing the issue as according to @lachlan-roberts everything is working as expected.

@joakime
Copy link
Contributor Author

joakime commented Nov 11, 2021

Reopening, as we should delete the file in source ...

https://github.com/eclipse/jetty.project/blob/jetty-10.0.7/jetty-server/src/main/config/modules/test-keystore/test-keystore.p12

@joakime joakime reopened this Nov 11, 2021
lachlan-roberts added a commit that referenced this issue Nov 12, 2021
@lachlan-roberts lachlan-roberts linked a pull request Nov 12, 2021 that will close this issue
lachlan-roberts added a commit that referenced this issue Nov 16, 2021
Issue #7062 - remove the old test-keystore.p12 file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants