santhoshprem
Posts: 1
Joined: Thu Oct 11, 2018 4:46 am

https access

Thu Oct 11, 2018 4:52 am

I have Installed the apache2 server. I am using as a local server. In that, I should provide https access. can you please help me.

User avatar
topguy
Posts: 5612
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: https access

Thu Oct 11, 2018 11:23 am

This is not really a Pi specific question any guide for Linux and Apache2 should be usable. If you pick one for Debian 9 you should be very close.
For example: https://www.server-world.info/en/note?o ... =httpd&f=8

User avatar
DougieLawson
Posts: 35522
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: https access

Fri Oct 12, 2018 6:34 am

You need a certificate.

Get that from https://certbot.eff.org
The certbot stuff does everything you need automatically.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

sora03
Posts: 192
Joined: Mon Dec 29, 2014 4:11 pm
Contact: Website

Re: https access

Fri Oct 12, 2018 1:23 pm

santhoshprem wrote:
Thu Oct 11, 2018 4:52 am
I have Installed the apache2 server. I am using as a local server. In that, I should provide https access. can you please help me.
If you are just going to use LAN for https access then this will not work, you cannot issue a Let's encrypt free SSL if for LAN use. You may want to just self-sign your own certificate but this will make the website display an Invalid Self-signed Certificate error message
FLOSS enthusiast, Debian user (linux-libre)

pfletch101
Posts: 480
Joined: Sat Feb 24, 2018 4:09 am
Location: Illinois, USA

Re: https access

Fri Oct 12, 2018 3:24 pm

sora03 wrote:
Fri Oct 12, 2018 1:23 pm
santhoshprem wrote:
Thu Oct 11, 2018 4:52 am
I have Installed the apache2 server. I am using as a local server. In that, I should provide https access. can you please help me.
If you are just going to use LAN for https access then this will not work, you cannot issue a Let's encrypt free SSL if for LAN use. You may want to just self-sign your own certificate but this will make the website display an Invalid Self-signed Certificate error message
It will, if the certificate doesn't match the domain that the browser believes it is looking at. I think, however, that if the site is purely for local use, it should be possible to make its apparent domain match that designated on the certificate (and/or vice versa). I have not tried this, however, so I may be talking through my hat.

User avatar
rpdom
Posts: 14701
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: https access

Fri Oct 12, 2018 3:34 pm

sora03 wrote:
Fri Oct 12, 2018 1:23 pm
santhoshprem wrote:
Thu Oct 11, 2018 4:52 am
I have Installed the apache2 server. I am using as a local server. In that, I should provide https access. can you please help me.
If you are just going to use LAN for https access then this will not work, you cannot issue a Let's encrypt free SSL if for LAN use.
You can. I do. It's a bit fiddly and you need access to certain things, like a DNS server, to prove you are the owner of the domain/site.

I do it by being able to create external DNS records that point to the internal/LAN domain. Using the acme.sh client, I can create a special DNS TXT record that Letsencrypt will confirm and issue the certificates without having to be able to access the web site itself.

Return to “Networking and servers”