A Wildcard SSL Certificate allows you to secure multiple first-level subdomains under a single main domain name, such as blog.yourdomain.com, shop.yourdomain.com, and mail.yourdomain.com.
To request a Wildcard SSL certificate, enter the domain name in wildcard format, such as *.yourdomain.com, in the Common Name (CN) field.
This guide explains how to properly format and generate a Wildcard CSR across common control panels and command-line environments.
The Fundamental Rule of Wildcard CSRs
When generating a standard SSL CSR, the Common Name (CN) field contains your exact domain name (e.g., example.com or [www.example.com](https://www.example.com)).
For a Wildcard SSL certificate, enter the Common Name (CN) in wildcard format, such as *.yourdomain.com.
Common Name (CN):
*.yourdomain.com(Replace
yourdomain.comwith your actual root domain name)
Option 1: Generate via BuySSL.lk Client Area (Easiest Method)
-
Log in to your BuySSL Client Area account.
-
Navigate to the CSR Generator tool inside your dashboard.
-
In the Common Name / Domain field, enter
*.yourdomain.com. -
Fill in your business name, city, province, and country code.
-
Click Generate CSR.
-
Important: Copy and securely save the generated Private Key text. The system will automatically use the CSR for your order configuration.
Option 2: Generate in cPanel
-
Log in to cPanel and open SSL/TLS under the Security section.
-
Click Generate, view, or delete SSL certificate signing requests.
-
Under Domains, type:
*.yourdomain.com. -
Fill in your City, State, Country, and Company details.
-
Set Key Length to 2,048 bits.
-
Click Generate.
-
Copy the generated CSR code block (including
-----BEGIN CERTIFICATE REQUEST-----and-----END CERTIFICATE REQUEST-----).
Option 3: Generate in Plesk Control Panel
-
Log in to Plesk and go to Websites & Domains > SSL/TLS Certificates.
-
Click Add SSL/TLS Certificate.
-
In the Domain Name field, enter:
*.yourdomain.com. -
Fill out the required organization and location details.
-
Select 2048 bits key length and click Request.
-
Click on the newly created record and copy the text inside the CSR field.
Option 4: Generate via Linux Terminal (OpenSSL)
-
Connect to your server via SSH.
-
Run the following OpenSSL command:
Bashopenssl req -new -newkey rsa:2048 -nodes -keyout wildcard_yourdomain.key -out wildcard_yourdomain.csr -
When prompted for Common Name (e.g. server FQDN), type:
*.yourdomain.comPlaintextCountry Name (2 letter code) [AU]: LK State or Province Name (full name) []: Western Province Locality Name (eg, city) []: Colombo Organization Name (eg, company) []: Example Lanka Pvt Ltd Organizational Unit Name (eg, section) []: IT Common Name (e.g. server FQDN) []: *.yourdomain.com -
Display and copy your CSR:
Bashcat wildcard_yourdomain.csr
Option 5: Generate in Windows IIS (IIS 8 / 10)
-
Open IIS Manager > select Server Name > double-click Server Certificates.
-
Click Create Certificate Request... in the Actions pane.
-
In the Common Name field, enter:
*.yourdomain.com. -
Complete the remaining wizard fields (Bit length: 2048).
-
Save the CSR file to your server drive, open it with Notepad, and copy the text.
Submitting Your Wildcard CSR
-
Return to my.buyssl.lk > Services > My Services.
-
Select your active Wildcard SSL order and click Configure Certificate.
-
Paste the copied Wildcard CSR into the configuration box.
-
Select your web server software and proceed to validation.
Pro-Tips & Important Notes:
First-Level Subdomains Only: A wildcard certificate for
*.yourdomain.comsecures first-level subdomains such asblog.yourdomain.comandshop.yourdomain.com, but it does not secure deeper subdomains such asdev.blog.yourdomain.com.Base Domain Protection: A wildcard certificate for
*.yourdomain.comdoes not automatically secure the base domainyourdomain.com. If you need to secure both, make sureyourdomain.comis also included in the certificate.Validation Method Requirement: Wildcard certificates commonly require DNS-based validation, such as a DNS TXT or CNAME record. The exact validation method depends on the Certificate Authority and certificate product.