I have a nginx server with the following (simplified) server block:
server {
listen 80;
server_name _;
location / {
root /var/www/html;
index index.html;
}
}
Every domain name that has an A-record to my server has the same website on it.
Question: is it possible to use a "wildcard" SSL certificate (I mean wildcard for all domains, not a wildcard subdomain)? So that all domain names, even new ones added to the group, will have an SSL-connection with the sever?
Let's encrypt is ok, a paid one is also ok (not too expensive).
If there are online tutorials about how to achieve this, please let me know. I'm struggling in Google on how to search for this topic.
Edit: I think I found a possible solution: https://medium.com/@vibhoragrawal/how-to-setup-ssl-on-the-fly-for-multiple-custom-domains-pointing-to-the-same-server-b557fc4df1f9. I will post the results if this works.