Wildcard-SSL-Zertifikat für xampp localhost

Wildcard-SSL-Zertifikat für xampp localhost

Als Webentwickler habe ich viele Websites lokal auf meinem Computer. Ich versuche, ihn so einzurichten, dass auf sie über HTTPS zugegriffen werden kann.

Hier ist der vhosts-Abschnitt meiner HTTP-Konfiguration

<VirtualHost *:80>
    ServerName test.local
    ServerAlias *.local
    VirtualDocumentRoot /home/jonathan/Sites/%-2/public_html
    CustomLog /home/jonathan/Sites/access.log vhost_combined
    ErrorLog /home/jonathan/Sites/error.log
</VirtualHost>

<VirtualHost *:443>
    ServerName test.local
    ServerAlias *.local
    VirtualDocumentRoot /home/jonathan/Sites/%-2/public_html
    CustomLog /home/jonathan/Sites/access.log vhost_combined
    ErrorLog /home/jonathan/Sites/error.log
    SSLEngine On
    SSLCertificateFile /home/jonathan/Sites/public.cert
    SSLCertificateKeyFile /home/jonathan/Sites/private.key
</VirtualHost>

Ich denke, das funktioniert, da ich von http://dotjs.localbedient werde, wenn ich zu gehe .index.html/home/jonathan/Sites/dotjs/public_html/

Wenn ich auf gehe https://dotjs.local, erhalte ich eine Warnung. Wenn ich sie jedoch ignoriere, wird mir ebenfalls die gleiche Datei angezeigt.

Ich habe Probleme, ein funktionierendes Zertifikat zu erhalten.

Ich bin (diesem) gefolgt[https://blog.celogeek.com/201209/209/how-to-create-a-self-signed-wildcard-certificate/]Anleitung zum Erstellen meines Zertifikats, außer dass ich die Dateien gemäß meiner VHosts-Konfiguration „public.cert“ und „private.key“ genannt habe.

Beim Erstellen des Zertifikates verwenden Sie folgenden Befehl:openssl req -new -x509 -nodes -sha1 -days 3650 -key private.key > public.cert

Ich habe Folgendes eingegeben (einige meiner persönlichen Daten habe ich ausgeblendet):

You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:GB
State or Province Name (full name) [Some-State]:{My county}
Locality Name (eg, city) []:{My city}
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Blar
Organizational Unit Name (eg, section) []:Blar
Common Name (e.g. server FQDN or YOUR name) []:*.local
Email Address []:{My email address}

Ich importiere dann host.perm in Chromium, aber (nach einem Neustart) erhalte ich immer noch Folgendes:Chromium-Antwort

verwandte Informationen