[
https://issues.apache.org/jira/browse/ARTEMIS-5340?focusedWorklogId=961106&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-961106
]
ASF GitHub Bot logged work on ARTEMIS-5340:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 10/Mar/25 16:44
Start Date: 10/Mar/25 16:44
Worklog Time Spent: 10m
Work Description: gemmellr commented on code in PR #5547:
URL: https://github.com/apache/activemq-artemis/pull/5547#discussion_r1987666390
##########
artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/ssl/SSLSupport.java:
##########
@@ -352,11 +352,14 @@ public static KeyStore loadKeystore(final String
keystoreProvider,
return ks;
}
- public static void checkPemProviderLoaded(String keystoreType) {
+ /**
+ * This method calls out to a separate class in order to avoid a hard
dependency on the provider's implementation.
+ * This allows folks who don't use PEM to avoid using the corresponding
dependency.
+ */
+ public static void checkPemProviderLoaded(String keystoreType) throws
Exception {
Review Comment:
Since it wasnt needed beforehand and unlike the earlier reflection based
changes adding various bits that throw, nothing seemingly now changes in the
method in a way that freshly throws a checked exception?
Issue Time Tracking
-------------------
Worklog Id: (was: 961106)
Time Spent: 2h 20m (was: 2h 10m)
> PEM provider not actually optional
> ----------------------------------
>
> Key: ARTEMIS-5340
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5340
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> Work was done via ARTEMIS-4710 to make the dependencies for the PEM security
> provider optional. However, that work was not complete.
> The provider class still has to be loaded by the JVM the first time any
> reference to {{SSLSupport}} is made which is done when enabling SSL on any
> acceptor, e.g.:
> {noformat}
> Caused by: java.lang.NoClassDefFoundError:
> de/dentrassi/crypto/pem/PemKeyStoreProvider
> at
> org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor.<init>(NettyAcceptor.java:294){noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact