install-service-cert

Copy the cert and key from a virtual server to some other service The domain to copy the cert from is specified with the --domain flag followed by a virtual server name. The services (like dovecot, postfix, mysql, webmin or usermin) to copy it to are set with the --service flag, which can be given multiple times. If the --add-global flag is given, the cert will be used as the default for the selected servers. But if --add-domain is given, it will only be used for requests to the servers on the domain’s hostname or IP address. When configured, the per-domain cert will be used in favor of the global default cert for each service, when a client connects using that domain name.

Copy the cert and key from a virtual server to some other service#

The domain to copy the cert from is specified with the --domain flag followed by a virtual server name. The services (like dovecot, postfix, mysql, webmin or usermin) to copy it to are set with the --service flag, which can be given multiple times.

If the --add-global flag is given, the cert will be used as the default for the selected servers. But if --add-domain is given, it will only be used for requests to the servers on the domain’s hostname or IP address. When configured, the per-domain cert will be used in favor of the global default cert for each service, when a client connects using that domain name.

Finally, the --remove-domain flag will remove any per-domain cert for the service, causing the global default to be used instead.

Command line help#

virtualmin install-service-cert --domain name
 --add-global | --add-domain | --remove-domain
 [--service type]+

Source: https://www.virtualmin.com/docs/development/api-programs/install-service-cert/

  • virtualmin, webmin, usermin, domain, dovecot, postfix, mysql, user, install, cli, command line, fix, service, cert
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installation Guides

Virtualmin can be installed in a number of ways, including an automated install script, which...

Automated Installation

Recommended system specifications A freshly installed supported OS At least 1 GiB RAM (full...

Manual Installation

Unlike the Automated Virtualmin installation, to make use of this installation type, your OS does...

Uninstalling Virtualmin

If you only want to stop using Virtualmin Pro features and keep Virtualmin on the server, use the...

How to Install Scripts

This tutorial guides you through the process of using Virtualmin’s script installer to add web...