IIS and HTTPS
Author
Discussion

TheAngryDog

Original Poster:

13,329 posts

241 months

Monday 19th February 2018
quotequote all
Does anyone here know much about IIS, HTTPS and local CA's? I have an issue that I am trying to sort but failing massively.

Thanks.

bitchstewie

68,818 posts

242 months

Monday 19th February 2018
quotequote all
Kind of depends on the issue... smile

Harpoon

2,555 posts

246 months

Monday 19th February 2018
quotequote all
What's the issue?

geeks

11,972 posts

171 months

Monday 19th February 2018
quotequote all
Agreed, more info required!

TheAngryDog

Original Poster:

13,329 posts

241 months

Monday 19th February 2018
quotequote all
We have an internal website that currently runs on HTTP. I want make it more secure and run on HTTPS. The website is an issue tracking system called YouTrack. I have followed their clear as mud documentation, spoke with their clear as mud support team but still I cannot get this working with HTTPS, so I am widening my field to see if I can get any pointers.

IIS documentation here

https://www.jetbrains.com/help/youtrack/standalone...

james_gt3rs

4,816 posts

223 months

Monday 19th February 2018
quotequote all

TheAngryDog

Original Poster:

13,329 posts

241 months

Monday 19th February 2018
quotequote all
pretty much, but we have our own on prem CA which I am generating the cert from.

Burrow01

1,991 posts

224 months

Monday 19th February 2018
quotequote all
TheAngryDog said:
pretty much, but we have our own on prem CA which I am generating the cert from.
Is the client in the same domain as the web server - does it trust the internal certificate you present from the site?

geeks

11,972 posts

171 months

Monday 19th February 2018
quotequote all
So have you already generated the cert? If so it should just be a case of chucking it into cert services and attaching it to iis.

ging84

9,548 posts

178 months

Monday 19th February 2018
quotequote all
If you are using a domain you have registered, unless you have a specific reason to need to use a non public CA it might just be less hassle to buy a certificate.

TheAngryDog

Original Poster:

13,329 posts

241 months

Tuesday 20th February 2018
quotequote all
The issue seems that no matter what I do, the IIS server doesn't seem to be trying to pass traffic https, despite binding the port etc. I do not even get a cert error if the cert is missing.

we own the domain and the system is an internal one, not client facing.

Cert has been generated.

TonyRPH

13,560 posts

200 months

Tuesday 20th February 2018
quotequote all
TheAngryDog said:
We have an internal website that currently runs on HTTP. I want make it more secure and run on HTTPS. The website is an issue tracking system called YouTrack. I have followed their clear as mud documentation, spoke with their clear as mud support team but still I cannot get this working with HTTPS, so I am widening my field to see if I can get any pointers.

IIS documentation here

https://www.jetbrains.com/help/youtrack/standalone...
According to the docs in the link above, YouTrack is a Java app.

So it looks as though you should be configuring IIS as a reverse proxy, as the app is not served by IIS itself.

Am I right?

TheAngryDog

Original Poster:

13,329 posts

241 months

Tuesday 20th February 2018
quotequote all
TonyRPH said:
TheAngryDog said:
We have an internal website that currently runs on HTTP. I want make it more secure and run on HTTPS. The website is an issue tracking system called YouTrack. I have followed their clear as mud documentation, spoke with their clear as mud support team but still I cannot get this working with HTTPS, so I am widening my field to see if I can get any pointers.

IIS documentation here

https://www.jetbrains.com/help/youtrack/standalone...
According to the docs in the link above, YouTrack is a Java app.

So it looks as though you should be configuring IIS as a reverse proxy, as the app is not served by IIS itself.

Am I right?
Correct, which I have done. It works fine as http, but not https.

TonyRPH

13,560 posts

200 months

Tuesday 20th February 2018
quotequote all
TheAngryDog said:
Correct, which I have done. It works fine as http, but not https.
At the risk of stating the obvious, I presume you've installed the "Application Request Routing (ARR)" extension and set all the recommended variables?

Have you enabled detailed logging, to see if any obvious pops up?


TheAngryDog

Original Poster:

13,329 posts

241 months

Wednesday 21st February 2018
quotequote all
TonyRPH said:
TheAngryDog said:
Correct, which I have done. It works fine as http, but not https.
At the risk of stating the obvious, I presume you've installed the "Application Request Routing (ARR)" extension and set all the recommended variables?

Have you enabled detailed logging, to see if any obvious pops up?
Yes ARR is installed. No I haven't enabled detailed logging, I will do that.

I don't know if this is an IIS or an issue with the web app at the moment. It seems a convoluted way of getting it to work to me, but I am no IIS expert so I cannot know for sure.

TonyRPH

13,560 posts

200 months

Wednesday 21st February 2018
quotequote all
TheAngryDog said:
Yes ARR is installed. No I haven't enabled detailed logging, I will do that.

I don't know if this is an IIS or an issue with the web app at the moment. It seems a convoluted way of getting it to work to me, but I am no IIS expert so I cannot know for sure.
It's quite a standard method of providing SSL access to Java based web apps.

Is this only internal? If so, why do you even need SSL?


TheAngryDog

Original Poster:

13,329 posts

241 months

Wednesday 21st February 2018
quotequote all
TonyRPH said:
TheAngryDog said:
Yes ARR is installed. No I haven't enabled detailed logging, I will do that.

I don't know if this is an IIS or an issue with the web app at the moment. It seems a convoluted way of getting it to work to me, but I am no IIS expert so I cannot know for sure.
It's quite a standard method of providing SSL access to Java based web apps.

Is this only internal? If so, why do you even need SSL?
The IIS side I think is straight forward, but the application side of it differs.

Our CTO wants it to have SSL. We are going to be hosting it in the cloud and it has an external ip address so it can be accessed without being on our VPN.

ging84

9,548 posts

178 months

Wednesday 21st February 2018
quotequote all
TheAngryDog said:
The IIS side I think is straight forward, but the application side of it differs.

Our CTO wants it to have SSL. We are going to be hosting it in the cloud and it has an external ip address so it can be accessed without being on our VPN.
The configs in the guide for setting up the reverse proxy is passing all requests to the app using http, and setting an x forwarded proto header.
This suggests the app has no support for terminating ssl, or it is not the recommended way of doing it.
So when you say but the application side of it differs, that makes no sense to me, as there should be no config on the app you proxy http and https requests to the exact same address both with http, the app will know if the client request was http or https based on the headers.
Unless your IIS server is connecting to the app server over an untrusted network, it sounds like you are over complicating it by trying to make it ssl all the way to the application.