SSL-Certificate help

Problems with the Windows version of XAMPP, questions, comments, and anything related.

SSL-Certificate help

Postby Sow. » 26. March 2020 00:29

Hello

First of all i'm new to programming and stuff but that's okay. The only part where i fail in is in this technical part like installing SSL for example! :D
I am trying to install a free SSL-Certificate on my website but it isn't working for some reason. I've added this code to my httpd-vhosts.conf

Code: Select all
NameVirtualHost *

<VirtualHost *:80>
 ServerName www.eco-aqua.be
 ServerAlias eco-aqua.be
 DocumentRoot "C:/xampp2/htdocs"
</VirtualHost>

<VirtualHost *:443>
    DocumentRoot "C:/xampp2/htdocs"
    ServerName www.eco-aqua.be
    ServerAlias eco-aqua.be
    SSLEngine on
    SSLCertificateFile "conf/ssl.crt/server.crt"
    SSLCertificateKeyFile "conf/ssl.key/server.key"
    <Directory "C:\xampp2\htdocs\test">
    Options All
   AllowOverride All
   Require all granted
    </Directory>
</VirtualHost>


It doesn't work it still says "Not secured" and trying to access it via Mozilla Firefox gives me that they don't allow self-signed certificates wich i did (makecert.bat).
I tried going to letsencrypt because thats also free to install but i don't get how i should install it: some weird commands where i don't know where i should type them.

Searched many of this up on Youtube and Google but it all ends like this for me. And yes this is only local development.

I really need to see that beautiful green lock though :mrgreen:

Thanks in advance.
Sow.
 
Posts: 4
Joined: 26. March 2020 00:19
XAMPP version: v3.2.4
Operating System: Windows 10

Re: SSL-Certificate help

Postby Nobbie » 26. March 2020 12:17

Sow. wrote:And yes this is only local development.


Actually, i can reach your site www.eco-aqua.be, its public?!

I got my SSL certificate from https://www.sslforfree.com/ - they also apply LetsEncrypt Certificates, but they are easier to install. You need your public HTTP site and a FTP server to your site, the problem is, that all these SSL providers need to validate your domain name. But sslforfree uses FTP which is far easier to do than LetsEncrypt does (but the Certificates are the same). You need to renew the Certificate already after 90 days - thats as it is.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: SSL-Certificate help

Postby Sow. » 27. March 2020 02:25

Sow. wrote:And yes this is only local development.

Actually, i can reach your site http://www.eco-aqua.be, its public?!


What do you get if you reach it? It should tell you that the site isn't found. I didn't buy this domain at all i just added it to my hosts file in system32.

I am using XAMPP for this so no idea if the rest of your explaination will work?
Sow.
 
Posts: 4
Joined: 26. March 2020 00:19
XAMPP version: v3.2.4
Operating System: Windows 10

Re: SSL-Certificate help

Postby Altrea » 27. March 2020 05:45

So you are thinking you can simply add any domain you want just in your hosts file and create a valid trustful domain certificate for it?
But you know what certificates are for, don't you?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: SSL-Certificate help

Postby Nobbie » 27. March 2020 09:44

Today its "Server not found", but yesterday it was "HTTP Error 503". Strange.

Anyway, you need a public domain name for a SSL Certificate from a trusted provider.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: SSL-Certificate help

Postby Sow. » 27. March 2020 17:54

Altrea wrote:So you are thinking you can simply add any domain you want just in your hosts file and create a valid trustful domain certificate for it?
But you know what certificates are for, don't you?



Certificates are used for proving that the connection between your device and the target server is secure. So i don't know like is this possible? How should i do this? And no, not only in my hosts file i put some code in my question wich is the configuration of my XAMPP. This configurates my added hosts in the hosts file. By the way: are you able to reach my local domain? I'm asking since Nobbie could but not succesfully, he had HTTP 503 yesterday and server not found today.

Thanks
Sow.
 
Posts: 4
Joined: 26. March 2020 00:19
XAMPP version: v3.2.4
Operating System: Windows 10

Re: SSL-Certificate help

Postby Sow. » 27. March 2020 17:55

Nobbie wrote:Today its "Server not found", but yesterday it was "HTTP Error 503". Strange.

Anyway, you need a public domain name for a SSL Certificate from a trusted provider.


So it"s not possible to add SSL to a local domain? Strange since all these sources on Youtube and Google are saying it is.
Sow.
 
Posts: 4
Joined: 26. March 2020 00:19
XAMPP version: v3.2.4
Operating System: Windows 10

Re: SSL-Certificate help

Postby Nobbie » 27. March 2020 22:42

Sow. wrote:So it"s not possible to add SSL to a local domain?[/quote}

No, it must be public.

Sow. wrote:Strange since all these sources on Youtube and Google are saying it is.


Which source are saying what? We are speaking about official SSL Certificate from a TRUSTED provider. Can you apply a link to all these source which tell you, that official SSL providers apply certificates to non-public (private) domains?

Many SSL documentations also are very outdated, actually a few years ago all browsers accepted self-signed certificates. The modern browsers do not accept self signed certificates anymore. Perhaps you were reading outdated documentations as well?
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 92 guests