Page 1 of 1

https

Posted: Sun Feb 05, 2023 4:38 pm
by degar
Is there a way to password protect certain directories (probably would need https for those dirs too)? (and example would be my docs dir, personal photos, or personal media dir) My understanding is that an unlisted directory is already protected because it is unknowable. So, a spider or person would need to guess the dir name. An easy password would block it if someone guessed it.

Here is a question people are probably thinking, but afraid to ask for fear of looking stupid.

As I understand it:
https purpose: man in the middle, Definitely useful for money transactions, email, social media, large sites with a reputation to destroy....But pointless with a "business card" like website, information site, research, weather browsing...
Downsides: slows my browsing down, makes certain proxies needed for data reduction impossible.

What I don't understand:
Why is my hosting company charging me annually for ssl certificates? Seems very stupid to allow 3rd parties to get leverage over the encryption. How can I get around it? What are the steps, in logical syntax, to get these magical keys, with out too many steps?

https://www.mwiede.de/windows-php-webse ... ex.htm#tls
Here you mention open ssl. Is it that my hosting company is malicious, and just trying to get more money from us?

The only reason I might want ssl is to understand the process. I am running a backup business card site from home, and a backup weather site--neither need https. However, I do have an unlisted directory with the audio books I own, and do not want anyone to have access to those directories, except me. Password for the other unlisted virtual dirs would be handy, or at least piece of mine.

Re: https

Posted: Sun Feb 05, 2023 6:59 pm
by degar
I am also wondering....I have at least 3 ways of getting to my home server: Mydomain.info, mydomain.dyndns.dk, another mydomain,dynamicdns.com , and probrably another mybackupdomain.com

Would it even be possible to get a certificate? https://zerossl.com/ wants to know my domain, which could be one of several domains that would point to the home ip. I am guessing, I need one for each domain, and stuff a bunch of certificates into the correct directory. .. Just a nob question.

Re: https

Posted: Sun Feb 05, 2023 7:06 pm
by mwiede
1. You can protect directories with password authentication. Just use the the /wwadmin panel.
http://yourdomain/wwadmin

To access WWadmin you have to create a password with the reset_pwd.bat located in WWebserver installation directory.

directory_protection.png
directory_protection.png (60.57 KiB) Viewed 42236 times

See also: https://www.mwiede.de/windows-php-webse ... zation.htm


2. Good SSL certificates can be free with Let's Encrypt https://letsencrypt.org/
Your provider should support Let's Encrypt.

If you want to use WWebserver with a valid certificate, the webserver must be accessible from the Internet under own domain name (DNS).
You can put the certificates into the cfg/ssl directory and create a virtual host for your domain in cfg/vhost.txt

See also: https://www.mwiede.de/windows-php-webserver/#tls

Re: https

Posted: Sun Feb 05, 2023 7:58 pm
by degar
I read that you have to renew the ssl every 90 days, which is a real buzz kill to me for making the effort, after doubly locking down my private directories with the wwadmin and a php lock. (Although, I am not sure if they are equal, or one is better than the other.)

It looks that a sub directories are also locked, which is a plus for the server method.

And expired ssl doesn't break the website does it? Also, Is it an easy process to get and install the ssl? If so, I might try it today.

Re: https

Posted: Mon Feb 06, 2023 5:30 pm
by mwiede
Expired SSL certificates are blocked by Chrome and other modern browers. You should renew them.
Therefore i am delevoping a script to renew Let's Encrypt certificates with WWebserver.
I will show this script next days.