Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Unable to Add SSL certificate - There was an error while configuring the SSL listener: Connect to mkt.mysite.com:8443 [mkt.mysite.com/10.2**.*.***] failed: Connection refused: connect

Avatar

Level 4

When trying to use the SSL wizard I am getting a connection error. What could cause this issue? I have made sure the ports required are open on the author instance server and our dispatcher and gone as far as to disable the firewall on the dispatcher server but it fails either way. [ip has been censored]

 

There was an error while configuring the SSL listener: Connect to mkt.mysite.com:8443 [mkt.mysite.com/10.2**.*.***] failed: Connection refused: connect

Connect to mkt.mysite.com:8443 [mkt.mysite.com/10.2**.*.*** failed: Connection refused: connect

 

18.04.2023 14:38:17.884 *INFO* [JcrInstaller.3] org.apache.sling.installer.provider.jcr.impl.JcrInstaller Registering resource with OSGi installer: [InstallableResource, priority=200, id=/apps/system/config/com.adobe.granite.jetty.ssl.internal.GraniteSslConnectorFactory.config]

18.04.2023 14:38:18.826 *ERROR* [10.211.8.240 [1681853897512] POST /libs/granite/security/post/sslSetup.html HTTP/1.1] com.adobe.granite.security.user.ui.internal.servlets.SSLConfigurationServlet Error while configuring SSL:

org.apache.http.conn.HttpHostConnectException: Connect to mkt.mysite.com:8443 [mkt.mysite.com/10.2**.*.***] failed: Connection refused: connect

        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.net.ConnectException: Connection refused: connect

        at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)

        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

        at java.net.Socket.connect(Socket.java:589)

        at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) [org.apache.httpcomponents.httpclient:4.5.13.B0001]

        ... 149 common frames omitted

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @DNest19 

 

Can you try this: https://kinsta.com/knowledgebase/ssh-connection-refused/

 

Hope it helps!

 

Thanks,

Kiran Vedantam.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @DNest19 

 

Can you try this: https://kinsta.com/knowledgebase/ssh-connection-refused/

 

Hope it helps!

 

Thanks,

Kiran Vedantam.

Avatar

Level 4

It was an issue with port forwarding in the linux firewall the dispatcher was on.