Multipli domain

Hii i need help to get multepli domani to work

i own domain1 end domain2
i have try this
sudo certbot -d example.com -d example.org
and
sudo certbot --expand -d example.com -d example.org -d newdomain.com

without result
i get it to work with on domain
Andreas

There is indeed a result--why didn't you share it?

You expected it to do something. It did do something. All we know at this point is that the something you asked it to do, and the something it did do, weren't the same. That doesn't help us help you at all.

Hi
I apologize, but my English isn't the best—I'll explain as best I can.
I own two domains. Currently, I’m using domain1 for my WordPress site, and domain2 is linked to my server.

On domain1, my SSL certificate works (the one my WordPress site is connected to).
I’d like to get an SSL certificate for domain2 as well.

Or have I misunderstood? Is it not possible to get a certificate for domain2 without having WordPress or something similar?

Andreas

Translated with DeepL.com (free version)

Usually, you'd get a certificate on your first domain for your first server, and a certificate on your second domain for your second server. It sounds like you have your first server working, so what's left is your second server.

What server software is running on that second domain? Most servers have a way built-in to request certificates now, though some don't and you'd need to use software like certbot for it.

Feel free to reply in your preferred language; people here know how to use automated (and manual) translation tools in general.

Jag har två domainer som pekar på samma server, hur gör jag för att domain2 ska använda https. precis som den första domainen

You're not giving a lot of details, so it's hard to give general advice. What software is running on that server that hosts the two domains? Usually you would just configure whatever that software is to get certificates automatically, so we don't know what problems you're having in doing so.