aaPanel_Jose

How can I renew the expired SSL certificates. The Certify Encryption of Letter in Cron job certificate does not work. Can we renew via Api.

    yclywz41 you can do both ways, the cron works perfectly on my end, CentOS. What distro are you using? CentOS is the recommended version tho...

      aaPanel_Jose

      Traceback (most recent call last):
      File "/www/server/panel/class/panelLets.py", line 14, in <module>
      import sewer,public
      File "/www/server/panel/class/sewer/__init__.py", line 1, in <module>
      from .client import Client # noqa: F401
      File "/www/server/panel/class/sewer/client.py", line 11, in <module>
      import OpenSSL
      ImportError: No module named OpenSSL

      is received when I run python /www/server/panel/class/panelLets.py renew_lets_ssl from the terminal.

        yclywz41
        you may need to run command by btpython or /www/server/panel/pyenv/bin/python
        btpython /www/server/panel/class/panelLets.py renew_lets_ssl
        /www/server/panel/pyenv/bin/python /www/server/panel/class/panelLets.py renew_lets_ssl

          22 days later

          aaPanel_Jose

          automatic ssl does not work due to the following errors when i run python /www/server/panel/class/panelLets.py renew_lets_ssl from the terminal

          /www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host 'acme-v02.api.letsencrypt.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

            yclywz41
            The warning message should not affect the renewal
            please try to use this command
            /www/server/panel/pyenv/bin/python /www/server/panel/class/acme_v2.py --renew=1

              aaPanel_Jose

              I used the code you gave the terminal.
              /www/server/panel/pyenv/bin/python /www/server/panel/class/acme_v2.py --renew=1
              I use Multi Hosting. I host multiple domains in a single folder. Could the problem be caused by it?

                yclywz41
                please try to execute this command
                echo 'curl' > /www/server/panel/data/http_type.pl
                then execute renew ssl comand again.

                  16 days later

                  aaPanel_Jose

                  |-2020-08-21 16:03:28 Total [0] renewal of visa tasks
                  `/www/server/panel/pyenv/bin/python /www/server/panel/class/panelLets.py renew_lets_ssl`
                  
                  |-[]Not expired or the site does not use the Let's Encrypt certificate.
                  |-2020-08-21 16:03:28 Waiting for renewal[0].
                  |-After the task is completed, a total of renewals are required.[0], renewal success [0], renewal failed [0].

                  When I run the command over ssh, the website list is Expiry: 4 days remaining, mercy ssl cannot be refreshed. The domain removed from the website section is querying.

                    2 years later

                    hi, i'm trying to use aapanel API. I successfully create new website by API but i don't know how to create SSL for it. There is no mention in the doc. how can i archive it?

                    2 years later
                    10 days later