SSL Issues

Discussion in 'Installation/Configuration' started by Kyrill, Oct 25, 2022.

  1. Kyrill

    Kyrill New Member

    Hello, today the ISPConfig control panel started throwing ERR_SSL_PROTOCOL_ERROR on Chrome and SSL_ERROR_RX_RECORD_TOO_LONG on Firefox.

    I tried the update script and selected to issue a new certificate but the problem persists, any ideas?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Kyrill

    Kyrill New Member

  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Yes. You will need to totally undo that process first, only then you can use ISPConfig installer to update your ispconfig and install LE certs. Otherwise, there will be some conflicts.
     
    Last edited: Oct 25, 2022
  5. Kyrill

    Kyrill New Member

    I renamed the old hostname directory to example.com.bak in /etc/letsencrypt/live and run the updater again. It now created a new certificate but its directory is named example.com-0001
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  7. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Why do you have to touch the LE certs folder? Now you have redundant LE certs for the same server hostname domain.

    The best way that I know if you do not want the old LE certs that have expired is to delete them all and to do that I would run "rm -rf /etc/letsencrypt/*/hostname.domain*". Do not do this unless you understand its consequences.
     
  8. Kyrill

    Kyrill New Member

    Redundant LE certs shouldn't be stopping the new ones from working though right?
    The hostname is a subdomain, should I have deleted the root domain cert as well?
    I run certbot certifications and got the following:

    Code:
    Renewal configuration file /etc/letsencrypt/renewal/hostname.domain.com.conf produced an unexpected error: expected /etc/letsencrypt/live/hostname.domain.com/cert.pem to be a symlink. Skipping.
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Found the following certs:
      Certificate Name: hostname.domain.com-0001
        Domains: hostname.domain.com
        Expiry Date: 2023-01-23 09:32:56+00:00 (VALID: 89 days)
        Certificate Path: /etc/letsencrypt/live/hostname.domain.com-0001/fullchain.pem
        Private Key Path: /etc/letsencrypt/live/hostname.domain.com-0001/privkey.pem
      Certificate Name: domain.com
        Domains: domain.com hostname.domain.com www.domain.com
        Expiry Date: 2023-01-16 02:01:48+00:00 (VALID: 82 days)
        Certificate Path: /etc/letsencrypt/live/domain.com/fullchain.pem
        Private Key Path: /etc/letsencrypt/live/domain.com/privkey.pem
    
    The following renewal configurations were invalid:
      /etc/letsencrypt/renewal/hostname.domain.com.conf
    
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Correct, but the system might use the old ones, which means the problem will persist. It might have been better if you would have removed the old broken cert first using certbot delete command.
     
    ahrasis likes this.
  10. Kyrill

    Kyrill New Member

    Hey there, just an update in case anyone screws this up like I did.
    I renamed the old cert back to its original name (removed .bak) and then deleted it and the one that had -0001 in the end using
    certbot delete --cert-name example.com
    Then after forcing an ispconfig update and creating a new cert through the process everything works fine.
     
    till and ahrasis like this.

Share This Page