Certamira
Independent reseller and guide. Not a certificate authority and not affiliated with any certificate authority.

Install a wildcard certificate on Nginx, Apache and cPanel

Install a wildcard certificate the same way as any other certificate. On Nginx set ssl_certificate and ssl_certificate_key. On Apache set SSLCertificateFile and SSLCertificateKeyFile. In cPanel open Security, then SSL/TLS, then Manage SSL sites. Keep the private key readable only by the server. After you save the configuration, reload the server and compare the certificate name in the browser with the wildcard name you ordered.

Install on Nginx

You need two PEM files: the certificate and the private key that belongs to it. The key is the one written when you created the CSR.

The directive ssl_certificate names the PEM certificate file of the virtual server. The directive ssl_certificate_key names the PEM secret key for that virtual server. To send a chain put the server certificate and the intermediate certificates in one PEM file and use that file in ssl_certificate.

Keep the private key readable only by the server account that runs Nginx. A wildcard certificate uses these same directives and the same PEM layout as any other certificate on that virtual server.

Install on Apache

Both files are PEM files. Place them where the server account can read them, and write their paths in the configuration of the virtual host.

With Apache mod_ssl the directive SSLCertificateFile is the PEM certificate file. The directive SSLCertificateKeyFile is the PEM private key file. From version 2.4.8 SSLCertificateFile also holds the intermediate certificates listed from leaf to root in the same file. That arrangement makes SSLCertificateChainFile obsolete. Keep the private key readable only by the server and install a wildcard certificate with these directives in the same way as any other certificate.

Install in cPanel

The path in the cPanel interface is Home, Security, SSL/TLS. Open Home. Go to Security and open SSL/TLS. Choose Manage SSL sites. Use the Install an SSL Website form and submit the certificate. A wildcard certificate installs in cPanel the same way as any other certificate.

Check the installed certificate

The check is short and has one goal: the name on the certificate must match the name you ordered. Reload the server. Open the site over HTTPS and compare the certificate name shown with the wildcard name you ordered.

Checked on 4 November 2026. Source: Nginx, Apache and cPanel documentation.