hi! so i have 2 virtual hosts,and id like them both to use ssl. when i install the cert for the 2nd host,it gives a warning that the cert is not valid for the domain and points back to the original virtual host. is there a way to have multiple hosts using their own ssl certs?
sorry for the late reply. Maybe my suggested solution to use SSL and https on WAMP server will help you:
Since I run several areas and websites or content locally the way via the WAMP configuration for each individual address was too time-consuming for me and I have the solution in the wampserver-ssl-aut-config tool on Github (https://github.com/custom-dev-tools/wampserver-ssl-auto-config). Works with any number of vurtualHosts and is easy to use!
Windows 11 64bit Wampserver 3.3.1 64bit Apache Version 2.4.54.2 PHP Version 5,7&8 MySQL Version 5&8 MariaDB 10 (don't /can't use)
Hi @diepeter
I've tried your much appreciated SSL batch script, but am unsuccessful in getting it to work. Hopefully, it has something to do with the below questions:
I run the script as administrator from the command prompt.
; Your WampServer installation path. wampServerInstallPath=D:\wamp64
; Your custom path to store your SSL certificates, keys, logs and vhost files. ; Ensure this path is NOT within your WampServer installation path. wampServerExtensionsPath=C:\wamp64 - ssl auto config
; These (common) ssl certificate details are used to build each developments domain name certificate. ; ; sslCity: The full name of a city. ; sslState: The full name of a state. ; sslCountry: The two letter ISO code of a country. ; sslOrganisation: The organisation name. ; sslOrganisationUnit: The unit name of a organisation. ; sslEmail: Use the 'local' part of an email address followed by the @ (at) symbol only. ; IMPORTANT: Do not include the 'domain' part of the email address as the hostname will be auto-appended. ; sslDays: The number of days you would like the certificates to remain valid for.
sslCity=Brisbane sslState=Queensland sslCountry=AU sslOrganization=Business sslOrganizationUnit=IT Department sslEmail=webmaster@ sslDays=3650
;---------------------; ; Development Domains ; ;---------------------;