Configure YouTrack for HTTPS

  • 2
  • 22

Hi,

I've just migrated our TeamCity and YouTrack instances that were co-hosted on a managed server onto separate VMs on Windows Azure. Originally I used IIS to act as a proxy to deal with all SSL requests (as per my blog post http://blogs.endjin.com/2010/11/a-step-by-step-guide-to-hosting-youtrack-in-iis-7/ )

I successfully managed to configure TeamCity to use SSL, as per http://paulstovell.com/blog/teamcity-ssl-on-windows-with-redirect-from-http but cannot configure YouTrack in the same way.

I see a set of errors in

Dec 30, 2013 8:39:18 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'clientAuth' to 'false' did not find a matching property.
Dec 30, 2013 8:39:18 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystoreFile' to 'E:\Program Files (x86)\YouTrack\conf\keystore2' did not find a matching property.
Dec 30, 2013 8:39:19 PM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: No Certificate file specified or invalid file format
java.lang.Exception: No Certificate file specified or invalid file format
 at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)
 at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:720)
 at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

etc... what's the best way to set up YouTrack to enable HTTPS?

Many thanks,

Howard
Question is not answered.
Hello Howard van Rooijen,

Did you operate as follows ?
Please, check certificates are in permitted format.

Thank you.
Regards,

Andrey Tigay
YouTrack engineer

Hi,

but isn't that more about setting up trust between 3rd party servers - rather than setting up YouTrack to run under SSL (to protect user credentials during auth)?