Hello, Am trying to add wildcard subdomain on my Hestia control panel but am getting error about domain format, what I did WEB->add web domain ->*.mydomain.cloud with my IP address then save
Add mydomain.cloud as domain
And under Edit web: Add *.mydomain.cloud as alias
am getting this Error: DNS record for *.mydomain.cloud doesn’t exist
I assume you want to generate an Lets Encrypt certificate for it?
You need to make sure *.mydomain.cloud existing in the DNS server and Letsencyrpt only works if you use Hestia for DNS
Currently am using hostinger VPS, Debian 11 with Hestiacp, am hosting a multitenancy application that allows a user to create a website, so every user upon signing up he/she assigned subdomain and database, database is working fine, even the subdomain is assigned, now the problem is all subdomains are unreachable as I have to make a wildcard subdomain which points to my main domain IP, so that every user subdomain should work just fine, but is unable to create a wildcard subdomain that’s where a need help.
Add a wildcard DNS record to your DNS provider and it will work
Let’s encrypt Wildcard DNS is only possible if you use Hestia for DNS. As we do require to add DNS records the DNS server.
Or buy a wildcard ssl certificate
or
what do you mean by DNS provider, for me I bought the domain from Truehost and am pointing it to hostinger vps
Yes the place where you manage the DNS…
Add Record and type in *
for the name.
Or contact there support
Thanks, I added it in my DNS manager it solved the problem
Now that the wildcard subdomain i have added in the DNS management in the true host account, how can I install lets encrypt SSL for this subdomain on Hestia central panel, since all subdomains are insecure,
You can’t use Letsencrypt on a wildcard domain unless you use Hestia as Nameservers. Use a paid ssl certificate
Have been able to generate certificates using certbot ,
here is what I have got after following all the processes
IMPORTANT NOTES:
-
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/onla.cloud/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/onla.cloud/privkey.pem
Your certificate will expire on 2023-05-02. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew all of your
certificates, run “certbot renew” -
If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let’s Encrypt: Donate - Let's Encrypt
Donating to EFF: Support EFF's Work on Let's Encrypt | Electronic Frontier Foundation
how can I add this in my dashboard ,under domain, SSL fields?
Yes, But don’t forget it to repeat it every 3 months…
Copy past the contents including the key you get…
this is the content i got * Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/onla.cloud/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/onla.cloud/privkey.pem
Your certificate will expire on 2023-05-02. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew all of your
certificates, run “certbot renew”