Articles in this section

How to create TLSA DNS record in Plesk and adjust DANE?

kb: how-to

Question

How to create TLSA DNS record in Plesk and adjust DANE?

Answer

Via Plesk CLI utility
  1. Open panel.ini via preferred editor
  2. Add the following directive:

    CONFIG_TEXT: [ext-sslit]
    allowIssueDaneCertificatesInCLI = true

  3. Connect to a Plesk server via SSH.
  4. Execute the following command:

    # plesk ext sslit --certificate -issue -domain example.com -registrationEmail jdoe@example.com-secure-domain -secure-mail -dane

  5. Execute the following command to finish the installation:

    # plesk ext sslit --certificate -issue -domain example.com -continue

Via CLI manually
  1. Create example.com domain in Plesk.
  2. Issue a Let's Encrypt certificate for this domain.
  3. Log into the server via SSH.
  4. Install hash-slinger package with the command:

    # yum install hash-slinger

  5. Find name of the certificate file for example.com domain using a command below:

    # plesk db "select cert_file from certificates where name like '%example.com%'"
    +-----------+
    | cert_file |
    +-----------+
    | scfygh0Pw |
    +-----------+

  6. Switch to the /usr/local/psa/var/certificates/ directory:

    # cd /usr/local/psa/var/certificates/

  7. Using the name of the certificate file from the step №5 and the next command, generate TLSA record for mail.example.com on port 25:

    # tlsa --create --selector 1 -p25 --certificate scfygh0Pw mail.example.com

    The output was the following:

    CONFIG_TEXT: _25._tcp.mail.example.com. IN TLSA 3 1 1 f8bda51d176a1d315eeec8a53c52febedf43319bf7c7ebbccafa9e14d9616541

  8. Go to Plesk > Domains > example.com > Hosting & DNS > DNS.
  9. Press the Add Record and using the values from the step №7, created a TLSA record for mail.example.com:
  10. After install Plesk DNSSEC extension by pressing Get It Free button in Plesk > Extensions > Extensions Catalog > Categories > DNS.
  11. Enable DNSSEC for example.com domain by pressing the Sign the DNS Zone button in Domains > example.com > Hosting & DNS > DNSSEC.

    Note: Algorithm was chosen as RSASHA256

 
To verify the results, open https://www.mailhardener.com/tools/dane-validator, specified mail.example.com an press the Inspect button
 
As the result it shows the configured TLSA DNS record and reported that DANE is properly configured for mail.example.com:

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.