Cant get ssl for my webmin?

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.6
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.9.0
Theme version 21.09.5

hello, i was useing vps and when i create webmin/virtualmin, i can get the SSL for my webmin panel (a virual server is created drom the url of the webmin panel) for ex like this: url 'https://vmi*****.contaboserver.net:10000/) and virtual server is (vmi*****.contaboserver.net) and its created on its own and it should be the primary server, but on VDS i cant see the primary virual server?? (so i cant use the SSL)?? can anyone help plz

I don’t know what “VDS” means, so I can’t figure out what you’re asking.

@Joe thanks for ur respond, VDS is Virtual Dedicated Server

Why do you name the server after your providers domain, haven’t you got your own domain name.

@stefan1959 thanks for the respond, its not the website domain, its the primary virtual server which can look like this for example(vmi83872.contaboserver.net) then i can get an SSL for it for the panel…

If you read the docs it implies to use FQDN you control, also the name will be added to the /etc/hosts file. But you do it your way.
Also you provider could in the future may decide to move your VPS, has happened to me a few time.

https://www.virtualmin.com/documentation/installation/automated/
also no A record

Oh, just don’t!

You don’t need SSL on the hostname of the system. Just create domains in Virtualmin and use any one of those names to login to Webmin.

There is no such thing as a “primary domain” and you don’t need to care about whether you have a cert with the name of the server itself.

so i dont need an SSL for (https://47.78.742.790:10000) and thanks @stefan1959 @Joe

SSL certs are named based not IP based. That IP won’t work anyway :slight_smile:

1 Like

You literally cannot get a Let’s Encrypt certificate for an IP. They won’t allow it. (And it is generally a bad practice.)

@Joe for ex (https://47.78.742.790:10000 ) is the same as (vmi83872.contaboserver.net ), and i used to have an SSL in my VPS before thats why im asking…

You could get a cert for vmibunchofnumbers.whatever.net, but why? There’s no reason to do that. You will be hosting domains on this system, I presume, since you have Virtualmin on it. So, use any of those instead when logging into Webmin.

idk much about it tbh, i thought the SSL is good for securty
so i can change hostname however i want? xD can u tell me how?

If you never talk to Webmin on that name, then what “security” could be involved? You’re going to get a certificate for the domain name you do use to talk to Webmin. You’re stubbornly clinging to the idea that this name matters. It doesn’t have to. You’re the one treating vmi83872.contaboserver.net like it matters. It doesn’t matter. It’s just a name. It’s an arbitrary name your hosting provider gave the system. You never have to use it for anything.

Of course you can. It’s your system, right? But, that’s a different question. Open a new topic.

1 Like

@awmwe99 If you’re really looking into setting up an SSL certificate for a hostname and this is your ultimate goal you can do it by going to System Settings ⇾ Virtualmin Configuration: SSL settings, enable Create host default domain with Let’s Encrypt certificate option, and re-check configuration. If everything is configured correctly it will just work.

thanks @Ilia, but theres no need since it has nothing to do with security…

If you want real securty for webmin turn on one or both of these.

1 Like

thanks i will try it

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.