126 reputation
18
bio website
location Glasgow, United Kingdom
age
visits member for 5 years
seen Aug 4 at 7:56

Jul
10
comment Configuring IIS site to use HTTPS
Brilliant never knew you could do that :) It's IIS (inetinfo.exe) so not quite sure where the Apache server is coming from. The only thing I can think of is there is perhaps some port forwarding going on at the router. This would actually make sense of the 404s. I don't have access to the router but I have sent this onto the sys admin.
Jul
10
comment Configuring IIS site to use HTTPS
There does indeed seem to be something else listening on that port as I got TCP MachineName:https MachineName:0 LISTENING in the list. I noticed that TeamViewer was running on the server which I think by default listens on port 80 & 443. I disabled that though and still got the same problem. Not really sure what else could be listening on there.
Jul
10
comment Configuring IIS site to use HTTPS
I have updated my post to include the response I get from fiddler. Doesn't make sense right away, the server isn't an Apache Server :S
Jul
10
revised Configuring IIS site to use HTTPS
added 402 characters in body
Jul
10
comment Configuring IIS site to use HTTPS
@BrentPabst how would I be able to tell the difference between an IIS 404/ASP.NET 404?
Jul
10
comment Configuring IIS site to use HTTPS
@BrentPabst - Thanks for your reply, however, I don't think this is related as I can access the API over HTTP with SSL off. It's only when I try to access it via HTTPS with SSL on it doesn't work. I will try the accepted solution anyway, you never know!
Jul
10
comment Configuring IIS site to use HTTPS
@ShaneMadden I have updated my question with the site bindings/ssl configuration. This is the only site I have in IIS (you can't create multiple sites through IIS manager with XP, only server editions) so I would assume it would be going to this one? I did check the logs anyway, however, it doesn't really tell you what site it's going to, just gives you the verb i.e. GET/POST etc, IP (which I assume is the client IP), the URL and the status code.
Jul
10
revised Configuring IIS site to use HTTPS
added 189 characters in body
Jul
9
comment Configuring IIS site to use HTTPS
Sorry on the mobile cant format those urls, first one is HTTP and the other is HTTPS. The port for SSL is the default 443.
Jul
9
comment Configuring IIS site to use HTTPS
@ChrisS The site is an MVC 4 WebAPI site, there are some custom routing however nothing dependent on the actual host. The site was hosting on port 81 over HTTP so for example I would access a resource like 127.0.0.1:81/users. After configuring the site for SSL (see the tutorial linked in the question for how it's been configured) I then tried to access the same resource via 127.0.0.1/users and I get a 404
Jul
9
comment Configuring IIS site to use HTTPS
@August Also, what does it matter which version of IIS I am using? If I can resolve the issue in an old version like 5.1 I am pretty sure the skills are transferable to newer versions. I am familiar with IIS 6.0/IIS 7.5, what I am not familiar with is setting HTTPS and that's the reason I am asking the question. I understand the IIS version is important for the actual solution, however, the question shouldn't be critiqued based on this fact.
Jul
9
comment Configuring IIS site to use HTTPS
@August "why even develop on an old OS/platform" The machine I have for development is not by choice I have been lumbered with it. "How is anyone supposed to troubleshoot your code" what code exactly do you want me to post? From what I can tell this is an IIS configuration issue, not a programming issue (although I could be wrong). "you say your API doesn't work over HTTPS, but does it work over HTTP?" I am beginning to think you didn't even bother to read the question..."Can you get a "hello world" page to work over HTTPS" - it's a REST API, no views are involved.
Jul
9
comment Configuring IIS site to use HTTPS
@Chopper3 You can only work with the tools your given, the question already states it's a development environment.
Jul
9
revised Configuring IIS site to use HTTPS
edited tags
Jul
9
awarded  Citizen Patrol
Jul
9
asked Configuring IIS site to use HTTPS
Jul
9
comment Unable to access site over HTTPS using self signed certificate
@womble I don't doubt I am doing something* wrong, I am trying to figure out exactly what it is I am doing wrong. The only thing different to the tutorials I have been doing is my site is configured on port 81 instead of port 80. To be honest I don't understand why the question has drifted as I think it's pretty clear, however, perhaps I wasn't as direct as I should have been in hindsight. I will post another question, thanks.
Jul
8
revised Unable to access site over HTTPS using self signed certificate
deleted 4 characters in body
Jul
8
comment Unable to access site over HTTPS using self signed certificate
Ok so it's basically not possible to configure a site which is hosted on a different port to use SSL? I tried accessing the site as HTTPS without the port 81 and it just keeps giving me 404s. I have followed various tutorials which say I have done it the right way but no matter what I do I can't get access over HTTPS.
Jul
7
comment Unable to access site over HTTPS using self signed certificate
@womble haha ok, it's basically the same interface (practically) as sitting here commenting. Anyway, to answer your question I want to swap out HTTP for HTTPS completely so the unexpected behaviour for now would be ok. Ideally I would want to re-direct any requests to HTTP to HTTPS but that's another days fire.