Wildcard SSL Certificate Issue Due to Missing NS Records Make it Rain Paper

  • AutoSSL Troubleshooting, DNS Management, DNS, DNS Configuration
  • 0

Pre-requirements

  • Access to the Plesk control panel as an administrator.
  • Ensure Plesk has the necessary permissions to write DNS records.
  • Wildcard SSL certificate generation capability (e.g., Let's Encrypt).

Issue

When generating a wildcard SSL certificate, the _acme-challenge TXT record is not created, and the following error is logged in /var/log/plesk/panel.log after enabling debug mode.

Cause

This issue is caused by missing or incorrect NS records for the domain. Without proper NS records, DNS validation cannot occur, leading to the failure to create the required _acme-challenge record.

Resolution

To resolve the issue, you must correct the NS records for the domain:

Steps to Correct NS Records for Wildcard SSL

  1. Log into your Plesk control panel.
  2. Navigate to Domains > example.com > Hosting & DNS > DNS Settings.
  3. Verify that the NS records are correctly configured. They must point to a valid DNS server hostname.
  4. Update the NS records if necessary.
  5. Click Update to apply the changes.
  6. Regenerate the wildcard SSL certificate. Plesk should now be able to create the _acme-challenge record.

Steps to Add NS Records Server-Wide for All Domains

  1. Go to Tools & Settings > DNS Template in Plesk.
  2. Add or correct the NS records in the template for all domains.
  3. Apply the changes to all hosted domains.

Gotchas to Avoid

  • Make sure your NS records point to valid and registered DNS server hostnames.
  • If Plesk cannot create the _acme-challenge record, double-check that the NS records have been updated correctly.

Linux Command to Check Wildcard SSL DNS Challenges

dig TXT _acme-challenge.example.com

For more information, visit our Knowledge Base.


Did this answer help?

« Back