Skip to main content

cPanel uapi to deploy a single certificate for multiple domains

Comments

7 comments

  • cPanelMichael
    Hello @glpanel, The following UAPI function is available for installing a SSL certificate:
    0
  • glpanel
    Hi Michael, thank you for your reply. "You'd need to install it for each domain name individually" means that to install the certificate of example N"1 I only need a single uapi command, while for example N"2 I must generate four certificates for each domain and install them with four uapi commands ? As for AutoSSL, I understand that it is a sort of user interface to automate the installation of certificates issued by Let's Encrypt or other certificate authority, in this case my hosting provider has not enabled this cPanel module.
    0
  • cPanelMichael
    "You'd need to install it for each domain name individually" means that to install the certificate of example N"1 I only need a single uapi command, while for example N"2 I must generate four certificates for each domain and install them with four uapi commands ?

    Hello @glpanel, It depends on the type of certificate you are installing. For instance, is it a standard SSL certificate that covers a single domain name, a wildcard SSL certificate, or a multi-domain (UCC) certificate? Thank you.
    0
  • glpanel
    I want to install a standard certificate that covers a domain and subdomain like example.com www.example.com
    0
  • cPanelMichael
    I want to install a standard certificate that covers a domain and subdomain like example.com
    0
  • cPanelFelipe
    Quick clarification: install_ssl does NOT install certificates onto "domains" per se; rather, it first installs them onto Apache httpd virtual hosts and then creates appropriate entries for non-httpd SSL services (e.g., Dovecot, Exim, cpsrvd, "). Consider a case where "example.com" and "haha.org" share an Apache virtual host. While install_ssl will accept either of those domain names, it"s not possible to have separate SSL certificates for the two domains; an installation for one will overwrite the installation for the other. Thus, the only way to secure both domains is to have a certificate that matches both domains. This is all because Apache httpd associates SSL certificates with virtual hosts, not with domain names. It"s an unfortunate design that creates a lot of confusion.
    0
  • glpanel
    Quick clarification: install_ssl does NOT install certificates onto "domains" per se ...

    Hi Felipe, thank you for this useful clarification. I"ve successfully installed three separate RSA certificates on three of my domains using cPanel Uapi, but my domains are not sharing Apache virtual hosts. Previously,
    0

Please sign in to leave a comment.