Community discussions

MikroTik App
 
prisoner267
just joined
Topic Author
Posts: 5
Joined: Sat Jul 24, 2021 8:57 pm

How to install CloudFlare origin SSL certificate on mikrotik

Mon Jul 26, 2021 1:15 pm

I have a website running inside my mikrotik which is linux head-less server and it doesn't have SSL certificate on it. I am using cloudflare as my Name Server. I used mikrotik nat rule to port forward 80. Now is it possible if I can make my linux server HTTPS by install cloudflare's SSL origin certificate or by installing mikrotik certificate in cloudflare. The end is I just want to make my website HTTPS.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to install CloudFlare origin SSL certificate on mikrotik

Mon Jul 26, 2021 1:43 pm

you can copy the rule for the port 443, but all the work is inside the server
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: How to install CloudFlare origin SSL certificate on mikrotik

Mon Jul 26, 2021 1:46 pm

You need SSL certificate on device, which terminates connections. For HTTPS it's web service (or reverse proxy if one is used), not the router performing NAT. So even for HTTPS you only have to port forward external TCP port 443 to your internal server (preferably port 443 as well) which will handle SSL just fine.
 
prisoner267
just joined
Topic Author
Posts: 5
Joined: Sat Jul 24, 2021 8:57 pm

Re: How to install CloudFlare origin SSL certificate on mikrotik

Tue Jul 27, 2021 7:18 pm

You need SSL certificate on device, which terminates connections. For HTTPS it's web service (or reverse proxy if one is used), not the router performing NAT. So even for HTTPS you only have to port forward external TCP port 443 to your internal server (preferably port 443 as well) which will handle SSL just fine.
I can't install SSL cert in linux server so is there anyway that if I install SSL cert in mikrotik and it'll make the connection HTTPS??
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to install CloudFlare origin SSL certificate on mikrotik

Tue Jul 27, 2021 7:21 pm

NO

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 82 guests