Jump to content
ТУК НЕ СЕ ПРЕДЛАГАТ ХАКЕРСКИ УСЛУГИ ! ×

Проблем с Shopware


Recommended Posts

Здравейте. Имам проблем с инсталирането на Shopware на моя Windows 10. След конфигурирането на базата данни, като натисна бутона 'Start instalation' ми излиза следната грешка: https://imgur.com/xr8wC3U

Разгледах файла който излиза в грешката(JwtCertificateService.php), но не мисля че има грешки, ето го и него:

<?php declare(strict_types=1);

namespace Shopware\Recovery\Common\Service;

class JwtCertificateService
{
    /**
     * @var string
     */
    private $folder;

    public function __construct(string $folder)
    {
        $this->folder = $folder;
    }

    public function generate(): void
    {
        $key = openssl_pkey_new([
            'digest_alg' => 'aes256',
            'private_key_type' => \OPENSSL_KEYTYPE_RSA,
            'encrypt_key' => false,
            'encrypt_key_cipher' => \OPENSSL_CIPHER_AES_256_CBC,
        ]);

        // export private key
        openssl_pkey_export_to_file($key, $this->folder . '/private.pem');

        // export public key
        $keyData = openssl_pkey_get_details($key);
        file_put_contents($this->folder . '/public.pem', $keyData['key']);

        chmod($this->folder . '/private.pem', 0660);
        chmod($this->folder . '/public.pem', 0660);
    }
}

 

Edited by alex54142
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.