SSL Configuration
Set up SSL certificates for your SaaS platform so all tenants get secure HTTPS connections. No wildcard SSL required!
Every professional SaaS platform needs SSL (HTTPS). It encrypts data, builds trust, and Google even ranks HTTPS sites higher. The good news? Our module does NOT require expensive wildcard SSL certificates β you can use free ones!
No Wildcard SSL Required! Unlike some competing modules, the Perfex CRM SaaS Module works with standard SSL certificates. This saves you $100-300/year that you'd otherwise spend on wildcard certificates.
Understanding SSL for SaaS
Here's what you need for each URL structure:
Subdirectory (yoursite.com/ws/tenant)
One standard SSL for your main domain
Free (Let's Encrypt)
Subdomain (tenant.yoursite.com)
One wildcard SSL OR Let's Encrypt auto-provisioning
Free (Let's Encrypt)
Custom Domain (tenant-domain.com)
SSL per custom domain (auto-provisioned recommended)
Free (Let's Encrypt)
Option 1: Let's Encrypt (Free β Recommended)
Let's Encrypt is a free, automated SSL certificate authority. It's trusted by all browsers and works perfectly with our module.
If You Have cPanel
Log in to cPanel
Look for "SSL/TLS Status" or "Let's Encrypt" (some cPanel versions have a dedicated Let's Encrypt tool)
Click "Run AutoSSL" β this will generate free SSL certificates for all your domains and subdomains
Wait a few minutes for the certificates to be issued
AutoSSL in cPanel automatically renews certificates before they expire. You set it up once and forget about it!
If You Have a VPS (Using Certbot)
Certbot is the official Let's Encrypt client. Here's how to install it:
For Apache:
For Nginx:
Wildcard certificates with Let's Encrypt require DNS validation (not HTTP validation). Certbot will ask you to add a TXT record to your DNS. Follow the on-screen instructions carefully.
If DNS validation seems too complex, you can use standard (non-wildcard) certificates with subdirectory mode, which only requires HTTP validation (easier).
Auto-Renewal
Let's Encrypt certificates expire every 90 days, but Certbot automatically sets up renewal. Verify it's working:
If this succeeds, your certificates will auto-renew forever!
Option 2: Cloudflare (Free + Extra Benefits)
Cloudflare provides free SSL along with CDN, DDoS protection, and performance optimization. It's an excellent choice for SaaS platforms.
Step 1: Add Your Domain to Cloudflare
Create a free Cloudflare account at cloudflare.com
Click "Add a Site" and enter your domain
Cloudflare will scan your existing DNS records
Change your domain's nameservers to Cloudflare's (your registrar will have instructions)
Step 2: Enable SSL
In Cloudflare, go to SSL/TLS
Set the encryption mode to "Full (strict)" if you have a certificate on your server, or "Flexible" if you don't
Turn on "Always Use HTTPS"
Step 3: Wildcard Coverage
Cloudflare's free plan covers:
yoursite.comβ*.yoursite.comβ (one level of wildcard)
This means all your tenant subdomains will automatically have SSL!
Cloudflare Universal SSL covers first-level subdomains for free. So tenant.yoursite.com is covered, but sub.tenant.yoursite.com is NOT (you'd need the paid plan for that β but you don't need nested subdomains for the SaaS module).
Option 3: Paid SSL Certificate
If you prefer a traditional paid SSL:
Comodo/Sectigo
Wildcard
~$70-150/year
Subdomain mode
RapidSSL
Wildcard
~$60-120/year
Subdomain mode
Let's Encrypt
Standard/Wildcard
Free
Everything
To install a paid certificate:
Purchase the certificate from your preferred provider
Generate a CSR (Certificate Signing Request) on your server
Submit the CSR to the certificate provider
Install the certificate on your server
For cPanel: use SSL/TLS β Install Certificate
For VPS: follow your certificate provider's installation guide
SSL for Custom Domains
When tenants use their own custom domain, they need their own SSL certificate. Here's how to handle this:
Automatic (Recommended)
If you're using Certbot on a VPS, you can set up automatic SSL for new domains:
Via Cloudflare
If the tenant uses Cloudflare for their domain, they get automatic SSL on Cloudflare's end. They just need to point their DNS to your server's IP.
Verifying SSL Is Working
After setting up SSL, verify it:
Open your browser and go to
https://yoursite.comLook for the padlock icon in the address bar
If using subdomains, test:
https://any-subdomain.yoursite.comYou should see the padlock on all URLs
You can also use online tools:
SSL Labs Test β Comprehensive SSL analysis
Why No Padlock β Check for mixed content issues
Forcing HTTPS
Make sure all traffic uses HTTPS (not HTTP):
Apache (.htaccess):
Nginx:
SSL configured! Your SaaS platform is now secure. All data between your tenants and the server is encrypted. Continue to configure your SaaS settings to start building your platform.
Last updated