TYPO3 Exception 1318283565

Login into TYPO3 is not possible anymore, as no OpenSSL backend for rsaauth is available.

  • Activate and configure (on Windows) the PHP module openssl
  • Configure rsaauth to use the openssl executable inside localconf.php

    • Set $TYPO3_CONF_VARS['SYS']['binSetup'] to the executable. E.g. 'openssl=C:/ ... /openssl.exe'
    • If your path to openssl.exe contains blanks, make sure to quote the openssl parameter, e.g. 'openssl="C:/ ... /openssl.exe"'
  • Set $TYPO3_CONF_VARS[TYPO3_mode]['loginSecurityLevel'] to 'normal' instead of 'rsa' (replace TYPO3_mode with BE or FE) and set the hash of your user account's password to the md5 hashed value of your password. This way you can at least access your installation. Please be aware that this is a bad idea and disabling rsaauth/saltedpasswords results in all your passwords being unusable, until openssl is available.

Windows 7 and Xampp

Assuming you installed Xampp into C:xampp:

  • Activate the PHP module openssl in C:xamppphpphp.ini. Look for this line:
;extension=php_openssl.dll
Copied!
  • Load fileinfo module as well. Look for this line and uncomment it:
;extension=php_fileinfo.dll
Copied!
  • Add an environment variable "OPENSSL_CONF" with value C:xamppapacheconfopenssl.cnf. Press "Win + PAUSE" to go to the System window. In the left sidebar are the system settings.
  • Either set $TYPO3_CONF_VARS['SYS']['binSetup'] 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)

    • If your path to openssl.exe contains blanks, make sure to quote the openssl parameter, e.g. 'openssl="C:/ ... /openssl.exe"'
  • Restart Apache
  • If Apache won't start, deactivate the apache ssl module (php has its own) in C:xamppapacheconfhttpd.conf like so:
#LoadModule ssl_module modules/mod_ssl.so
Copied!

and near the end of the file:

#Include conf/extra/httpd-ssl.conf
Copied!
  • Copy libeay32.ddl and ssleay32.dll from C:xamppphp\ to C:xamppapachebin\

Solution for Windows 10 with XAMPP

I have a 64-bit Windows 10 laptop upon which I installed XAMPP and TYPO3 v8.7.10. For days I struggled with the following message during TYPO3 install cited as a catastrophic failure under "System Environment" evaluations:

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.

Finally, after trying all kind of OpenSSL-related installation verifications, I found a solution at this link ... https://stackoverflow.com/questions/4719939/xampp-openssl-errors-when-calling-openssl-pkey-new?rq=1 ...

At the bottom it said; "...start apache using the xampp/apache_start.bat NOT THE XAMPP CONTROL PANEL (its strange that when started from the control panel it doesn't work [maybe a current directory problem])".

After launching apache with xampp/apache_start.bat, I could launch everything else (esp. MySQL) using the XAMPP Control Panel, which did detect Apache was already running. Next, I returned to TYPO3 8.7.10 install checks, and the OpenSSL problem was gone!

I do not know what is the difference (directory spec or what?) between XAMPP Control Panel and xampp/apache_start.bat.