# Slim Application Error bei Installation (openssl\_pkey\_export\_to\_file(): cannot get key from param...

**URL:** https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883
**Category:** Installation / Einstieg
**Created:** [20. September 2019 um 08:52 UTC](https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883 "2019-09-20T08:52:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![opalion](https://avatars.discourse-cdn.com/v4/letter/o/a587f6/32.png) [@opalion](https://forum.shopware.com/u/opalion)
#### Post date: [20. September 2019 um 08:52 UTC](https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883/1 "2019-09-20T08:52:28Z")

</div>

Wir kommen leider bei der Installation nicht weiter (auf Windows 10 Workstation). Was passt hier nicht? Danke im Voraus…:

**Slim Application Error**

The application could not run because of the following error:

Details

**Type:** TypeError

**Message:** openssl\_pkey\_get\_details() expects parameter 1 to be resource, boolean given

**File:** C:\wamp64\www\shopware6\public\recovery\common\src\Service\JwtCertificateService.php

**Line:** 30

Trace

```
 #0 C:\wamp64\www\shopware6\public\recovery\common\src\Service\JwtCertificateService.php(30): openssl\_pkey\_get\_details(false) #1 C:\wamp64\www\shopware6\public\recovery\install\src\app.php(323): Shopware\Recovery\Common\Service\JwtCertificateService-\>generate() #2 [internal function]: Closure-\>{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #3 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\Handlers\Strategies\RequestResponse.php(41): call\_user\_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #4 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\Route.php(356): Slim\Handlers\Strategies\RequestResponse-\>\_\_invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #5 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\Route-\>\_\_invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\Route.php(334): Slim\Route-\>callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\App.php(515): Slim\Route-\>run(Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 C:\wamp64\www\shopware6\public\recovery\install\src\app.php(154): Slim\App-\>\_\_invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #9 [internal function]: Closure-\>{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #10 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\DeferredCallable.php(43): call\_user\_func\_array(Object(Closure), Array) #11 [internal function]: Slim\DeferredCallable-\>\_\_invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #12 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(70): call\_user\_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #13 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\App-\>Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #14 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\App.php(405): Slim\App-\>callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #15 C:\wamp64\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\App.php(313): Slim\App-\>process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #16 C:\wamp64\www\shopware6\public\recovery\install\index.php(51): Slim\App-\>run() #17 {main}

```

( ! ) Warning: openssl\_pkey\_export\_to\_file(): cannot get key from parameter 1 in C:\wamp64\www\shopware6\public\recovery\common\src\Service\JwtCertificateService.php on line _27_

---

<div class="post-metadata">

### Author: ![ProgressioDvlmpt](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@ProgressioDvlmpt](https://forum.shopware.com/u/ProgressioDvlmpt)
#### Post date: [29. September 2019 um 19:32 UTC](https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883/2 "2019-09-29T19:32:40Z")

</div>

Ich hatte das selbe Problem, probier das ganze mal auf einem Webserver mit SSL Zertifikat aus, hat bei mir geklappt. Vielleicht funktionierts einfach noch nicht ohne SSL

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [30. September 2019 um 03:56 UTC](https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883/3 "2019-09-30T03:56:41Z")

</div>

Das Problem ist eher, dass Shopware 6 nicht für Windows ausgelegt ist und auch nie einwandfrei dort laufen wird.

Am besten eine VM, wie diese hier nutzen:&nbsp;[Shopware 6 - Setting Up a Local Environment with Virtual Box](https://docs.shopware.com/en/shopware-6-en/tutorials-and-faq/virtual-box-setup)

&nbsp;

---

<div class="post-metadata">

### Author: ![opalion](https://avatars.discourse-cdn.com/v4/letter/o/a587f6/32.png) [@opalion](https://forum.shopware.com/u/opalion)
#### Post date: [3. Oktober 2019 um 07:30 UTC](https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883/4 "2019-10-03T07:30:00Z")

</div>

Ja, das habe ich mittlerweile auch gehört. Die VM ist aber nur für Entwicklungszwecke gedacht, nicht für ein Produktivsystem. Verstehe ich zwar nicht, da andere PHP basierte Software wie Magento, WordPress, usw. auch ganz normal auf Windows lauffähig sind.Ich probiere es jetzt mal auf einem Linux-Webhost mit SSL.

---

<div class="post-metadata">

### Author: ![andreheeke](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@andreheeke](https://forum.shopware.com/u/andreheeke)
#### Post date: [6. Dezember 2019 um 10:12 UTC](https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883/5 "2019-12-06T10:12:03Z")

</div>

Ich habe das Problem unter Windows mit folgenden Schritten (sofern XAMPP als Entwicklungsumgebung genutzt wird)&nbsp;lösen können:

1. Umgebungsvariablen \> Systemvariablen \> Neu…  
Name der Variablen: OPENSSL\_CONF  
Wert der Variablen:&nbsp;C:\xampp\php\extras\openssl\openssl.cnf
2. Umgebungsvariablen \> Systemvariablen \> Path \> Bearbeiten… \> Neu  
Folgenden Inhalt einfügen:&nbsp;C:\xampp\php\extras\openssl

Anschließend im CMD mit Hilfe des Befehls set PATH=c die Variablen neu geladen -&nbsp;alternativ PC neu starten -&nbsp;und XAMPP und seine Services neu starten.

---

<div class="post-metadata">

### Author: ![daenu](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@daenu](https://forum.shopware.com/u/daenu)
#### Post date: [22. Juni 2021 um 05:09 UTC](https://forum.shopware.com/t/slim-application-error-bei-installation-openssl-pkey-export-to-file-cannot-get-key-from-param/61883/6 "2021-06-22T05:09:54Z")

</div>

@andreheeke Du bist der Hammer!

Eine VM einrichten kostet immer Zeit, dann auch noch XDebug wieder zum laufen kriegen, usw. Zuviel Aufwand für nur ein Projekt.

Die Umgebungsvariablen setzen hat’s gebracht, Dankeschön!
