Tutorial: How to secure Traccar with SSL / HTTPS for free, using IIS and Let’s Encrypt on Windows Server

Freekers7 years ago

Hi,

For those of you who are interested, I wrote a tutorial on how to secure Traccar with SSL / HTTPS for free, using IIS and Let’s Encrypt on Windows Server.
You can find it on my blog: https://freek.ws/2017/12/09/tutorial-how-to-secure-traccar-with-ssl-https-for-free-using-iis-and-lets-encrypt-on-windows-server/

Kind regards.

cesaruben_ctes7 years ago

Excellent contribution Congratulations.

mohanand7 years ago

Great work

any tutorial how to host traccar on IIS?
I tried to host many times but no luck.
I failed at web-socket configuration

Thanks again for the great work

Anton Tananaev7 years ago

@mohanand, your question makes zero sense. This very thread contains a link to the tutorial.

mohanand7 years ago

@anton, my question is how to do web-socket configuration
why it makes zero sense ?

Anton Tananaev7 years ago

Well, that's not what you asked

any tutorial how to host traccar on IIS?

mohanand7 years ago

@anton, oh sorry that is not what I meant, I clear it at the next line "I failed at web-socket configuration"

Anton Tananaev7 years ago

Then you probably need to say that you followed the guide and something doesn't work. And then provide information on what exactly doesn't work, what errors you get and what kind of investigation you have done to determine what the problem is.

mohanand7 years ago

@anton,
ok
I had hosted Traccar on IIS
it was successful, but objects (devices) and notification was updating each 2 minutes on IIS, while it was normal on the traccar hosting
I did investigation about that and it was mis-configuring the web-socket in IIS, I tried to configure it and I did researches on google, but I was not able to do it, so now I asking for a help from someone already tired traccar with iis

Freekers7 years ago

Traccar has it's own built-in Java webserver. IIS is only necessary if you want to setup a reverse proxy for example to use SSL (as described in my tutorial).

mohanand7 years ago

I want to host it on IIS because IIS allows to host multiple websites on the same port and now I have another reason which is to add SSL,
any guide how to configure the web-socket?

Freekers7 years ago

You cannot replace the internet Java webserver by IIS. You can only setup a reverse proxy for Traccar using IIS, that's all.

Jose B6 years ago

@Freekers, good tutorial, congratulations!

I followed your guide and something doesn't work. ( note: setup a reverse proxy using IIS works by do way )

I have websocket error when I use "https://mydomain" link. {immediate appear the message when the I open the web }

Using "http//mydomain:8082" {in the same moment in other tab, in the same browser, etc} I do not have this message.

I already check the logs and there NO error or warn about it.

help please

JB

Freekers6 years ago

Can you send me some screenshots of your IIS configuration? For example the reverse proxy rules and your web.config

Jose B6 years ago