You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2023/05/17 19:14:00 UTC
[jira] [Resolved] (TOMEE-2161) TomEE-embedded: Attribute "keystoreFile" is not set correctly in Container startup
[ https://issues.apache.org/jira/browse/TOMEE-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Zowalla resolved TOMEE-2161.
------------------------------------
Assignee: (was: Jonathan Gallimore)
Resolution: Auto Closed
Hi there!
We wanted to reach out and let you know that we're currently working on cleaning up open issues in Jira that specifically impact unsupported versions, including 1.7.x, 7.0.x, and 7.1.x.
If you had previously reported this issue on one of these unsupported versions, we kindly ask you to check if the problem still persists and can be reproduced on a supported version such as 8.0.x or 9.0.x. If you find that it is indeed reproducible on a supported version, you're more than welcome to re-open this issue.
Thanks!
> TomEE-embedded: Attribute "keystoreFile" is not set correctly in Container startup
> ----------------------------------------------------------------------------------
>
> Key: TOMEE-2161
> URL: https://issues.apache.org/jira/browse/TOMEE-2161
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 7.0.5
> Reporter: Lars Fessen
> Priority: Major
>
> When using the Tomee-embedded Container and trying to use HTTPs the "keystoreFile"-attribute is not set correctly. (We are using tomee-embedded 7.0.0 but the github master has still the same bug)
> *How I use the container:*
> {code:java}
> Configuration cfg = new Configuration();
> cfg.setSsl(true);
> cfg.setKeystoreFile("my/path/to/keystore/keystore.p12");
> cfg.setKeystoreType("PKCS12");
> cfg.setKeystorePass("changeit");
> cfg.setSslProtocol("TLS");
> cfg.setKeyAlias("alias");
> cfg.setSkipHttp(true);
> cfg.setHttpsPort(config.getPort());
> org.apache.tomee.embedded.Container container;
> container = new Container();
> container.setup(cfg);
> container.start();
> {code}
> *Where is the bug in Tomee-embedded:*
> https://github.com/apache/tomee/blob/master/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/Container.java
> Line: 632
> {code:java}
> if (configuration.getKeystoreFile() != null) {
> httpsConnector.setAttribute("", configuration.getKeystoreFile());
> }
> {code}
> *What is the solution (in my opinion):*
> {code:java}
> if (configuration.getKeystoreFile() != null) {
> httpsConnector.setAttribute("keystoreFile", configuration.getKeystoreFile());
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)