Hi,
I am trying to setup HTTPS access to the Bitbucket Server I am setting up.
I have added my certificate to the keystore per instructions in the setup guide, and called it tomcat per instructions, however it's still not working. (See below screenshot)
image2015-11-20 16:42:52.png
Here is my server settings file you can see down the bottom I have added the part for https:
Here is my log file, may be of use:
Any ideas would be greatly appreciated.
Thanks
Jordan
Hi Jordan,
I see the connector in the server.xml, but the keystore isn't added to it. You may refer to the document https://confluence.atlassian.com/bitbucketserver/securing-bitbucket-server-with-tomcat-using-ssl-776640127.html about securing Bitbucket Server with Tomcat using SSL. Among the examples provided, you'll find the following containing the keystore added to the connector:
<Connector port="8443" maxHttpHeaderSize="8192" SSLEnabled="true" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" useBodyEncodingForURI="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/opt/local/.keystore" keystorePass="removed" keyAlias="tomcat"/>
Regards,
Gustavo Refosco
Hi Gustavo, I think that part is now working as the error is not showing in the error log anymore. But the https access is still not working. See error log below: 23-Nov-2015 09:34:03.625 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [D:\Development\BitBucket\${bitbucket.home}\lib], exists: [false], isDirectory: [false], canRead: [false] 23-Nov-2015 09:34:03.625 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [D:\Development\BitBucket\${bitbucket.home}\lib], exists: [false], isDirectory: [false], canRead: [false] 23-Nov-2015 09:34:04.078 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property. 23-Nov-2015 09:34:04.078 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property. 23-Nov-2015 09:34:04.125 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property. 23-Nov-2015 09:34:04.125 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Development\BitBucket\lib\native;D:\Development\BitBucket_ApplicationData\lib\native 23-Nov-2015 09:34:04.296 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-7990"] 23-Nov-2015 09:34:04.375 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 23-Nov-2015 09:34:04.390 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8443"] 23-Nov-2015 09:34:04.671 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 23-Nov-2015 09:34:04.671 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 990 ms 23-Nov-2015 09:34:04.703 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina 23-Nov-2015 09:34:04.703 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.24 23-Nov-2015 09:34:14.009 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 23-Nov-2015 09:34:15.405 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-7990"] 23-Nov-2015 09:34:15.415 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8443"] 23-Nov-2015 09:34:15.417 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 10742 ms 23-Nov-2015 09:35:19.240 INFO [http-nio-7990-exec-9] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM' 23-Nov-2015 09:35:19.238 INFO [http-nio-7990-exec-2] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM' 23-Nov-2015 09:35:19.299 INFO [http-nio-7990-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' 23-Nov-2015 09:35:19.349 INFO [http-nio-7990-exec-2] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc 23-Nov-2015 09:35:19.354 INFO [http-nio-7990-exec-2] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport 23-Nov-2015 09:35:19.355 INFO [http-nio-7990-exec-2] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport 23-Nov-2015 09:35:19.392 INFO [http-nio-7990-exec-3] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc 23-Nov-2015 09:35:19.398 INFO [http-nio-7990-exec-3] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport 23-Nov-2015 09:35:19.399 INFO [http-nio-7990-exec-3] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport 23-Nov-2015 09:35:19.406 INFO [http-nio-7990-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' 23-Nov-2015 09:35:19.419 INFO [http-nio-7990-exec-10] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc 23-Nov-2015 09:35:19.419 INFO [http-nio-7990-exec-10] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport 23-Nov-2015 09:35:19.419 INFO [http-nio-7990-exec-10] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport 23-Nov-2015 09:35:20.324 INFO [http-nio-7990-exec-1] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM' Thanks for your help. Jordan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.