You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Dan Langford (Jira)" <ji...@apache.org> on 2023/02/21 16:45:00 UTC

[jira] (QPID-8624) [Broker-J] Unable to auto generate self signed certificate on Java17

    [ https://issues.apache.org/jira/browse/QPID-8624 ]


    Dan Langford deleted comment on QPID-8624:
    ------------------------------------

was (Author: danlangford):
Daniil noted a workaround on the mailing list. putting it here in case others run into this issue.

 

As a workaround you can add JVM flags to the runtime:


--add-opens java.base/sun.security.tools.keytool=ALL-UNNAMED
--add-opens java.base/sun.security.x509=ALL-UNNAMED

> [Broker-J] Unable to auto generate self signed certificate  on Java17
> ---------------------------------------------------------------------
>
>                 Key: QPID-8624
>                 URL: https://issues.apache.org/jira/browse/QPID-8624
>             Project: Qpid
>          Issue Type: Bug
>          Components: Broker-J
>    Affects Versions: qpid-java-broker-9.0.0
>            Reporter: Daniil Kirilyuk
>            Priority: Major
>             Fix For: qpid-java-broker-9.0.1
>
>
> When trying to autogenerate a keystore with self signed certificate on java 17 environment following error is thrown: 
> {code:java}
> org.apache.qpid.server.configuration.IllegalConfigurationException: Unable to construct keystore 
> at org.apache.qpid.server.security.AutoGeneratedSelfSignedKeyStoreImpl.generatePrivateKeyAndCertificate(AutoGeneratedSelfSignedKeyStoreImpl.java:296) 
> at org.apache.qpid.server.security.AutoGeneratedSelfSignedKeyStoreImpl.postResolve(AutoGeneratedSelfSignedKeyStoreImpl.java:169) 
> Caused by: java.lang.IllegalAccessException: class org.apache.qpid.server.transport.network.security.ssl.SSLUtil cannot access class sun.security.tools.keytool.CertAndKeyGen (in module java.base) because module java.base does not export sun.security.tools.keytool to unnamed module @6b37576e at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Unknown Source) at java.base/java.lang.reflect.AccessibleObject.checkAccess(Unknown Source){code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org