PHP OpenSSL extension not working while installing TYPO3 6.2.2 on Windows 7

user3471037 picture user3471037 · May 20, 2014 · Viewed 31.2k times · Source

I've installed TYPO3 6.2.2 on Windows 7 but I got an error message as below:

PHP OpenSSL extension not working Something went wrong while trying to create a new private key for testing. Please check the integration of the PHP OpenSSL extension and if it is installed correctly.

I try to find the solution on the internet about this error but I cannnot solve this bug.

Can anyone help me to find the solution please? Thanks.

Answer

Alan picture Alan · Jun 29, 2014

Solution that worked for me on XAMPP and Windows Vista:

  • Activate the PHP module openssl

    Open php.ini and uncomment(delete ';') in:

    ;extension=php_openssl.dll

    Double-check that the extension is enabled by running phpinfo().

  • Add a system environment variable "OPENSSL_CONF" with value

    C:\xampp\apache\conf\openssl.cnf

    ...assuming you installed xampp into C:\xampp.

  • Set path to 'openssl.exe', which is in C:\xampp\apache\bin

    • Either set $TYPO3_CONF_VARS['SYS']['binSetup'] in ...\htdocs\typo3_src-6.2.x\typo3\sysext\core\Configuration\DefaultConfiguration.php to 'openssl=c:/xampp/apache/bin/openssl.exe'

    • or append c:\xampp\apache\bin to the environment variable PATH (will work for every PHP script not only TYPO3)

  • Restart xampp

Links/sources: