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

后端 未结 6 1520
北海茫月
北海茫月 2020-12-31 05:21

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 ne

6条回答
  •  攒了一身酷
    2020-12-31 05:54

    Adding the path like below "config" => "D:/xampp/php/extras/openssl/openssl.cnf", solved the issue.

    $key = openssl_pkey_new([
        "config" => "D:/xampp/php/extras/openssl/openssl.cnf",
        'digest_alg' => 'aes256',
        'private_key_type' => OPENSSL_KEYTYPE_RSA,
        'encrypt_key' => false,
        'encrypt_key_cipher' => OPENSSL_CIPHER_AES_256_CBC,
    ]);
    openssl_pkey_export_to_file($key, $this->folder . '/private.pem');
    

提交回复
热议问题