You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Dominique Toupin (JIRA)" <ji...@apache.org> on 2016/06/22 18:14:16 UTC

[jira] [Updated] (ARTEMIS-590) Allow NettyConnector to use the default SSL Context

     [ https://issues.apache.org/jira/browse/ARTEMIS-590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominique Toupin updated ARTEMIS-590:
-------------------------------------
    Description: 
It would be nice if NettyConnector were able to use the "default" SSL Context (SSLContext.getDefault()) as the client might already have defined it...

I believe all it takes is a new system property (e.g. org.apache.activemq.ssl.useDefaultSSLContext) and the addition of an if in NettyConnector.java where the SSL Context would otherwise be created using the other org.apache.activemq.ssl.* properties

e.g.
{code:java}
@@ -396,11 +395,7 @@ public class NettyConnector extends AbstractConnector {
       final SSLContext context;
       if (sslEnabled) {
          try {
+           if (System.getProperty(ACTIVEMQ_USE_DEFAULT_SSL_CONTEXT_PROP_NAME) != null)
+              context = SSLContext.getDefault();
+           else {
{code}

  was:
It would be nice if NettyConnector were able to use the "default" SSL Context (SSLContext.getDefault()) as the client might already have defined it...

I believe all it takes is a new system property (e.g. org.apache.activemq.ssl.useDefaultSSLContext) and the addition of an if in NettyConnector.java where the SSL Context would otherwise be created using the other org.apache.activemq.ssl.* properties

e.g.
{code:java}
@@ -396,11 +395,7 @@ public class NettyConnector extends AbstractConnector {
       final SSLContext context;
       if (sslEnabled) {
          try {
+             if (System.getProperty(ACTIVEMQ_USE_DEFAULT_SSL_CONTEXT_PROP_NAME) != null)
+              context = SSLContext.getDefault();
+            else {
{code}


> Allow NettyConnector to use the default SSL Context
> ---------------------------------------------------
>
>                 Key: ARTEMIS-590
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-590
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Dominique Toupin
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> It would be nice if NettyConnector were able to use the "default" SSL Context (SSLContext.getDefault()) as the client might already have defined it...
> I believe all it takes is a new system property (e.g. org.apache.activemq.ssl.useDefaultSSLContext) and the addition of an if in NettyConnector.java where the SSL Context would otherwise be created using the other org.apache.activemq.ssl.* properties
> e.g.
> {code:java}
> @@ -396,11 +395,7 @@ public class NettyConnector extends AbstractConnector {
>        final SSLContext context;
>        if (sslEnabled) {
>           try {
> +           if (System.getProperty(ACTIVEMQ_USE_DEFAULT_SSL_CONTEXT_PROP_NAME) != null)
> +              context = SSLContext.getDefault();
> +           else {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)