SSL does not work
Asked by Sergii Bielskyi:

I have deployed Confluence server on Azure VM. And when I try to use http everything is working perfectly. But I would like to use https. I found the documentetion about it <https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html>. I have done all steps but https does not work. I don't know why and where can I see the logs, why it is not working? Thank you for help.


Answers:
author: Shannon S
body: Sergii,

Can you let us know exactly what isn't working with https? What behavior are you experiencing in your browser vs what you would like to have happen?

The article has a few different settings you need to apply, and each one has a different result, so if you can tell us what isn't happening, we can help narrow down the issue.

Regards,

Shannon

comments: author: Sergii Bielskyi
body: Hi Shannon,

When I try to go on portal using https, after few seconds I get the message that this site cannot be reached.

If looking to my server.xml it is something like this bellow

\<Connector port="8443" maxHttpHeaderSize="8192"

maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

enableLookups="false" disableUploadTimeout="true"

acceptCount="100" scheme="https" secure="true"

clientAuth="false" sslProtocol="TLS" SSLEnabled="true"

URIEncoding="UTF-8" keystorePass="changeit"

keystoreFile="\~/.keystore"/\>


author: Shannon S
body: Hi Sergii,

Can you have a look in your [Confluence server application logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) and check that Confluence started properly during the last restart? You'll find something such as "init Ready to Serve".

In addition, can you show me the screenshot of the error you see when you try to access Confluence?

Regards,

Shannon


author: Sergii Bielskyi
body: Thank you, I found some errors

18-Jan-2018 19:59:29.744 INFO \[main\] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler \["http-nio-8091"\]  
18-Jan-2018 19:59:29.981 SEVERE \[main\] org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore Failed to load keystore type JKS with path \~/.keystore due to /opt/atlassian/confluence/\~/.keystore (No such file or directory)  
java.io.FileNotFoundException: /opt/atlassian/confluence/\~/.keystore (No such file or directory)  
at java.io.FileInputStream.open0(Native Method)  
at java.io.FileInputStream.open(FileInputStream.java:195)  
at java.io.FileInputStream.\<init\>(FileInputStream.java:138)  
at java.io.FileInputStream.\<init\>(FileInputStream.java:93)  
at sun.net.[www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90](http://www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90))  
at sun.net.[www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188](http://www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188))  
at org.apache.tomcat.util.file.ConfigFileLoader.getInputStream(ConfigFileLoader.java:96)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:442)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)  
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:370)  
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:823)  
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)  
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)  
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)

18-Jan-2018 19:59:29.983 SEVERE \[main\] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler \["http-nio-8091"\]  
java.io.FileNotFoundException: /opt/atlassian/confluence/\~/.keystore (No such file or directory)  
at java.io.FileInputStream.open0(Native Method)  
at java.io.FileInputStream.open(FileInputStream.java:195)  
at java.io.FileInputStream.\<init\>(FileInputStream.java:138)  
at java.io.FileInputStream.\<init\>(FileInputStream.java:93)  
at sun.net.[www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90](http://www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90))  
at sun.net.[www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188](http://www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188))  
at org.apache.tomcat.util.file.ConfigFileLoader.getInputStream(ConfigFileLoader.java:96)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:442)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)  
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:370)  
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:823)  
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)  
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)  
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)

18-Jan-2018 19:59:29.984 SEVERE \[main\] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector \[Connector\[HTTP/1.1-8091\]\]  
org.apache.catalina.LifecycleException: Failed to initialize component \[Connector\[HTTP/1.1-8091\]\]  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)  
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)  
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed  
at org.apache.catalina.connector.Connector.initInternal(Connector.java:962)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
... 12 more  
Caused by: java.io.FileNotFoundException: /opt/atlassian/confluence/\~/.keystore (No such file or directory)  
at java.io.FileInputStream.open0(Native Method)  
at java.io.FileInputStream.open(FileInputStream.java:195)  
at java.io.FileInputStream.\<init\>(FileInputStream.java:138)  
at java.io.FileInputStream.\<init\>(FileInputStream.java:93)  
at sun.net.[www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90](http://www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90))  
at sun.net.[www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188](http://www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188))  
at org.apache.tomcat.util.file.ConfigFileLoader.getInputStream(ConfigFileLoader.java:96)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:442)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)  
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:370)  
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:823)  
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)  
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)  
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)  
... 13 more


author: Sergii Bielskyi
body: After changing location to keystore I have anothe issue.

19-Jan-2018 12:37:38.612 SEVERE \[main\] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler \["http-nio-8443"\]  
java.security.UnrecoverableKeyException: Get Key failed: Given final block not properly padded  
at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:410)  
at sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)  
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:70)  
at java.security.KeyStore.getKey(KeyStore.java:1023)  
at sun.security.ssl.SunX509KeyManagerImpl.\<init\>(SunX509KeyManagerImpl.java:133)  
at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)  
at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:617)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)  
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:370)  
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:823)  
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)  
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)  
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)  
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded  
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:989)  
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:845)  
at com.sun.crypto.provider.PKCS12PBECipherCore.implDoFinal(PKCS12PBECipherCore.java:399)  
at com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndDESede.engineDoFinal(PKCS12PBECipherCore.java:431)  
at javax.crypto.Cipher.doFinal(Cipher.java:2165)  
at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:348)  
... 26 more

19-Jan-2018 12:37:38.615 SEVERE \[main\] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector \[Connector\[HTTP/1.1-8443\]\]  
org.apache.catalina.LifecycleException: Failed to initialize component \[Connector\[HTTP/1.1-8443\]\]  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)  
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)  
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed  
at org.apache.catalina.connector.Connector.initInternal(Connector.java:962)  
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)  
... 12 more  
Caused by: java.security.UnrecoverableKeyException: Get Key failed: Given final block not properly padded  
at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:410)  
at sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)  
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:70)  
at java.security.KeyStore.getKey(KeyStore.java:1023)  
at sun.security.ssl.SunX509KeyManagerImpl.\<init\>(SunX509KeyManagerImpl.java:133)  
at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)  
at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:617)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)  
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:370)  
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:823)  
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)  
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)  
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)  
... 13 more  
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded  
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:989)  
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:845)  
at com.sun.crypto.provider.PKCS12PBECipherCore.implDoFinal(PKCS12PBECipherCore.java:399)  
at com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndDESede.engineDoFinal(PKCS12PBECipherCore.java:431)  
at javax.crypto.Cipher.doFinal(Cipher.java:2165)  
at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:348)  
... 26 more

19-Jan-2018 12:37:38.633 INFO \[main\] org.apache.catalina.startup.Catalina.load Initialization processed in 1075 ms  
19-Jan-2018 12:37:38.647 INFO \[main\] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone  
19-Jan-2018 12:37:38.647 INFO \[main\] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.47  
19-Jan-2018 12:37:40.227 INFO \[localhost-startStop-2\] org.apache.catalina.core.ApplicationContext.log Spring WebApplicationInitializers detected on classpath: \[com.atlassian.synchrony.proxy.SynchronyDispatcherServletInitializer@19edced8\]  
19-Jan-2018 12:37:40.789 INFO \[localhost-startStop-2\] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'dispatcher'  
19-Jan-2018 12:37:40.789 INFO \[localhost-startStop-2\] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization started  
19-Jan-2018 12:37:40.793 INFO \[localhost-startStop-2\] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date \[Fri Jan 19 12:37:40 UTC 2018\]; root of context hierarchy  
19-Jan-2018 12:37:40.872 INFO \[localhost-startStop-2\] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.loadBeanDefinitions Registering annotated classes: \[class com.atlassian.synchrony.proxy.websocket.WebSocketConfig,class com.atlassian.synchrony.proxy.web.SynchronyWebMvcConfig\]  
19-Jan-2018 12:37:41.547 INFO \[localhost-startStop-2\] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.initialize Initializing ExecutorService 'defaultSockJsTaskScheduler'  
19-Jan-2018 12:37:41.596 INFO \[localhost-startStop-2\] org.springframework.web.socket.server.support.WebSocketHandlerMapping.registerHandler Mapped URL path \[/v1/bayeux-sync1\] onto handler of type \[class org.springframework.web.socket.server.support.WebSocketHttpRequestHandler\]  
19-Jan-2018 12:37:42.182 INFO \[localhost-startStop-2\] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{\[/healthcheck\]}" onto public com.atlassian.synchrony.proxy.web.HealthCheckResult com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.getSynchronyProxyInfo()  
19-Jan-2018 12:37:42.183 INFO \[localhost-startStop-2\] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{\[/reload\],methods=\[PUT\]}" onto public org.springframework.http.ResponseEntity com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.reloadConfiguration(com.atlassian.synchrony.proxy.web.SynchronyProxyConfigPayload)  
19-Jan-2018 12:37:42.218 INFO \[localhost-startStop-2\] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path \[/\*\*\] onto handler of type \[class org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler\]  
19-Jan-2018 12:37:42.307 INFO \[localhost-startStop-2\] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'dispatcher-servlet': startup date \[Fri Jan 19 12:37:40 UTC 2018\]; root of context hierarchy  
19-Jan-2018 12:37:42.463 INFO \[localhost-startStop-2\] org.springframework.context.support.DefaultLifecycleProcessor.start Starting beans in phase 2147483647  
19-Jan-2018 12:37:42.506 INFO \[localhost-startStop-2\] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 1716 ms  
19-Jan-2018 12:39:01.905 INFO \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-8090"\]  
19-Jan-2018 12:39:01.986 INFO \[main\] org.apache.catalina.startup.Catalina.start Server startup in 83353 ms  
19-Jan-2018 12:39:03.181 INFO \[http-nio-8090-exec-3\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'  
19-Jan-2018 12:39:03.228 INFO \[http-nio-8090-exec-10\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'  
19-Jan-2018 12:39:03.676 INFO \[http-nio-8090-exec-7\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'  
19-Jan-2018 12:39:03.774 INFO \[http-nio-8090-exec-4\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'  
19-Jan-2018 12:39:06.502 INFO \[http-nio-8090-exec-12\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'  
19-Jan-2018 12:39:07.345 INFO \[http-nio-8090-exec-6\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'


author: Shannon S
body: Hi Sergii,

It appears that you have an issue with the cert itself. "*java.security.UnrecoverableKeyException: Get Key failed: Given final block not properly padded*" usually means your password is incorrect.

I would recommend starting there.

Regards,

Shannon


author: Sergii Bielskyi
body: Good day, Shannon. I have checked the password. It is working one. Any problems with that. Perhaps, the problem with key certificate could be but I don't know how to check.


author: Shannon S
body: Hi Sergii,

I would say that's a good place to start. Most simply the error means the password is wrong but it could also point to other problems, such as the ones that [Nic pointed out in this post](https://community.atlassian.com/t5/Jira-Core-questions/How-to-fix-keytool-error-java-io-IOException-failed-to-decrypt/qaq-p/276779).

I would recommend checking the cert by running OpenSSL in a terminal and see if you're able to decrypt it. Here are some common commands in OpenSSL to get you started:

* [The Most Common OpenSSL Commands](https://www.sslshopper.com/article-most-common-openssl-commands.html)

I'm afraid I won't be able to help much beyond this as I am not well-versed SSL and certificates, but I can say that it's definitely this SSL configuration that is causing issues with Confluence.

Regards,

Shannon


author: Sergii Bielskyi
body: Thank you, now it is ok. I have fixed my issue following this steps <https://yimingsun.wordpress.com/2012/03/12/step-by-step-instructions-on-self-signed-certificate-and-tomcat-over-ssl/>


author: Shannon S
body: Sergii,

Glad to hear! Thank you for letting us know how you were able to resolve your problem.

Take care, and have a pleasant week.

Regards,

Shannon