Let's Encrypt SSL certificate installation failed - not recognized as an internal or external command

Created:

2016-11-16 12:52:19 UTC

Modified:

2017-08-08 13:32:13 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Let's Encrypt SSL certificate installation failed - not recognized as an internal or external command

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

During the Let's Encrypt installation the following error occurs:

    Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: '"D:\\Program Files (x86)\\Parallels\\Plesk\\/var/modules/letsencrypt/venv\\Scripts\\letsencrypt.exe"' is not recognized as an internal or external command,
operable program or batch file.

Cause

pip python module was not added during installation.

Resolution

  1. Install Let's encrypt and wait for the error:

    Error: Failed to install the extension: Executing D:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\modules\\letsencrypt\\scripts\\post-install.php failed: ERROR: The executable "D:\\Program Files (x86)\\Parallels\\Plesk\\/var/modules/letsencrypt/venv\\Scripts\\python.exe" could not be run: [Error 5] Access is denied
  2. Copy the %plesk_dir%\\python\\Lib\\site-packages\\pip folder into the %plesk_dir%\\var\\modules\\letsencrypt\\venv\\Lib\\site-packages directory.

  3. Execute the following command in the console:

    "%plesk_bin%\\php.exe"  -dauto_prepend_file=sdk.php "%plesk_dir%\\admin\\plib\\modules\\letsencrypt\\scripts\\post-install.php"
  4. Upon executing this command the following error might occur:

        C:\\>"%plesk_bin%\\php.exe"  -dauto_prepend_file=sdk.php "%plesk_dir%\\admin\\plib\\m
    odules\\letsencrypt\\scripts\\post-install.php"
    C:\\Program Files (x86)\\Parallels\\Plesk\\var\\modules\\letsencrypt\\venv\\lib\\site-pac
    kages\\pip\\_vendor\\requests\\packages\\urllib3\\util\\ssl_.py:318: SNIMissingWarning:
    An HTTPS request has been made, but the SNI (Subject Name Indication) extension
    to TLS is not available on this platform. This may cause the server to present
    an incorrect TLS certificate, which can cause validation failures. You can upgra
    de to a newer version of Python to solve this. For more information, see https:/
    /urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
    SNIMissingWarning

    In this case, launch `plesk-python.msi` from `C:\\ParallelsInstaller\\parallels\\PANEL-WIN_<plesk_version>\\dist-msi-Microsoft-2003-i386` folder to reinstall Plesk Python.

    Then run again:

    "%plesk_bin%\\php.exe" -dauto_prepend_file=sdk.php "%plesk_dir%\\admin\\plib\\modules\\letsencrypt\\scripts\\post-install.php"
Have more questions? Submit a request
Please sign in to leave a comment.