How do I register current domains like http://a.example.com as subdomains of https://example.com with an SSL Wildcard?
Posted by: Dragos (---.ro)
Date: August 26, 2024 04:01PM

Hello all.. Until now I had only one main domain for which I had a simple ssl certificate that worked in the form of [example.com] registered in the wampserver httpd-ssl.config file and several sites that worked independently in the form of [A.example] .com, [B.example.com], etc. registered in the httpd-vhosts.conf file. I decided to get a wildcard ssl certificate so that all respond to https as subdomains. How should I configure the sites in httpd-vhosts.config to respond to [A.example.com], [B.example.com], etc.... I need to register them individually in httpd-ssl.conf as the main server..??? How exactly?

===========================
thank you,
Dragos
===========================
I use:
windows 10 x64 bit
wampserver 3.3.6 (64bit)
php 8.3.9
mysql 9.0.1
phpmyadmin 5.2.1
apache 2.4.62
MariaDB 11.4.2

Re: How do I register current domains like http://a.example.com as subdomains of https://example.com with an SSL Wildcard?
Posted by: Otomatic (Moderator)
Date: August 26, 2024 05:43PM

Hi,

Let's take the example of a manually self-signed certificate as described in :
Right-Click -> Help -> Wampserver 'manual' HTTPS mode help

3.2.1 Certificate Domain Name
before go to 3.2.2, sub-domains must be added to Certificate SAN (Subject Alternate Names)

In this case, a single certificate can cover several domains and sub-domains.

That's all I know.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Re: How do I register current domains like http://a.example.com as subdomains of https://example.com with an SSL Wildcard?
Posted by: Dragos (---.ro)
Date: August 26, 2024 06:31PM

I already have the ssl wildcard certificate purchased for a domain and all subdomains. I put the crt certificate, key and ca-bundle certificate in place of the previous ones. And the main site works. I'm interested if in httpd-ssl.config I have to move all the records from httpd-vhost.config to indicate the ssl operation and the place of the certificates and change the port from 80 to 443...or not. Or there may be a simpler version like "Alias ​​*example.com"

===========================
thank you,
Dragos
===========================
I use:
windows 10 x64 bit
wampserver 3.3.6 (64bit)
php 8.3.9
mysql 9.0.1
phpmyadmin 5.2.1
apache 2.4.62
MariaDB 11.4.2

Re: How do I register current domains like http://a.example.com as subdomains of https://example.com with an SSL Wildcard?
Posted by: Otomatic (Moderator)
Date: August 26, 2024 08:32PM

> And the main site works.
If the main site is working correctly in HTTPS mode, all you need to do is add the VirtualHost port 443 for the sub-domains in httpd-ssl.conf, but with the same certificates as for the main site.

It goes without saying that for both the main site and the sub-domains, the relevant VirtualHost port 80 must exist in httpd-vhosts.conf and be functional in HTTP mode.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Re: How do I register current domains like http://a.example.com as subdomains of https://example.com with an SSL Wildcard?
Posted by: Dragos (---.ro)
Date: August 27, 2024 07:09AM

Thank you and....

===========================
thank you,
Dragos
===========================
I use:
windows 10 x64 bit
wampserver 3.3.6 (64bit)
php 8.3.9
mysql 9.0.1
phpmyadmin 5.2.1
apache 2.4.62
MariaDB 11.4.2

Sorry, only registered users may post in this forum.