SSL error: Private key does not match the certificate public key

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Dec 19, 2022.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    After an upgrade mysql cannot start and getting in error log the following:

    SSL error: Private key does not match the certificate public key
    2022-12-19 18:28:11 0 [ERROR] Failed to setup SSL
    2022-12-19 18:28:11 0 [ERROR] SSL error: Private key does not match the certificate public key
    2022-12-19 18:28:11 0 [ERROR] Aborting

    Any idea how to solve this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig is not configuring SSL certs in MySQL or MariaDB, so that's a setup that you must have configured manually, which means you should know how to fix it as you set it up. The error means that MySQL cert and key do not match. If it worked before, then either the cert to key must have changed.
     
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    If I set ssl=off in server conf it works but why it stopped working? Any ideas?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check your SSL config to find where the SSL certs you use are located, then check the file if one of them was replaced, and then you can, e.g. restore the right original file from a backup. or if you don't have a backup, create a new SSL key and cert pair.
     

Share This Page