Certificate file directory

Most free certificates will have the following four folders. The panel only needs to use nginx or apache, others don't need to be bothered.

Nginx configuration certificate method (the certificate directory has only two files):
Enter the nginx (certificate) directory, there are the following two files
The red box.key suffix is the server private key, fill in the red box on the left side of the panel certificate (copy and paste it with a text editor)
The blue box. The crt suffix is the certificate (it may also be the pem suffix), fill in the blue box on the right side of the panel certificate (copy and paste it with a text editor)


Then save it.

Apache configuration certificate method (the certificate directory has three files):
Enter the apache (certificate) directory, there are the following three files
The red box.key suffix is the server private key, fill in the red box on the left side of the panel certificate (copy and paste it with a text editor)
The two certificates of the blue frame domain name certificate and the purple frame root certificate need to be merged and filled in the blue frame on the right side of the panel certificate (copy and paste it in a complete text editor)
If you do not merge only the blue box domain name certificate, mobile phone access will report missing certificate chain / insecure, etc.
If the order is not correct, apache cannot start normally

Certificate merge steps:
The following is a screenshot in the text editor, the blue domain name certificate is placed in the blue box above the purple box root certificate is placed in the purple box below (note that the content is complete)

Finally, click Save.

Thanks for the tutorial but i didn't find key file with my ssl certificate. I purchased ssl certificate from godaddy and downloaded it for Apache please find the attached image. So considering the below files please suggest.

    saiorkrish When you generate CSR for ssl their will generate also private key below. Have you save the generated data?

    7 months later

    No sometimes, it's not work like that especialy when you buy it from namecheap. private key not always generate when you generate CSR. for someone that confuse how to install it , you can follow this guy tutorial https://www.youtube.com/watch?v=99zyfMObC98 .

    8 months later

    Is this need symblink to auto ssl on Aapanel? How about using openlitespeed is this same?

    Where is the file location? I have been buy wilcard ssl.

    6 months later

    I found a very easy and simple solution.
    I hope it will help you.
    Generate SSL from any ssl provider (zerossl.com if free)
    When you download them, there will be 3 files key, certificate, CA Bunddle.

    Now go to your aaPanel Click Websites > Conf of website > SSL
    You will see box like this

    Click on disable certificate,
    then go to Other certificate tab

    There will be 2 boxes. Empty these 2 boxes, Paste your downloaded private key in private key box
    in Certificate (CRT/PEM) box: first paste certificate.crt then after this post ca_bundle in same box

    All is done. you are now done.

    6 months later

    Hello, can anyone help me? How do I deploy cloudflare SSL on aapanel? They provide a certificate valid for 15 years. How do I do? I would like to enable this certificate and use end-to-end encryption.

      aaP_vini
      Hi, is the problem solved? cloudflare SSL is a self-signed certificate. Browsers don't trust, only cloudflare trusts
      Paste it according to the content of your file.

        aaPanel_Kern

        It was not solved. I keep trying to install cloudflare 15 year old ssl but I can't. I deploy it on the site, replacing lets encrypt, but it doesn't work.

        Any suggestion?

          aaP_vini
          What information is prompted? What do you mean by not working? Please provide more information. Cloudflare's certificate is only for communication between cloudflare and the server.

            12 days later

            aaP_vini
            Hello, the website uses Cloudflare to use the SSL of CloudFlare, otherwise it is recommended to use Let's Encrypt

            Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com