# Installation  shopware / production:  Warning: openssl\_pkey\_new()

**URL:** https://forum.shopware.com/t/installation-shopware-production-warning-openssl-pkey-new/71992
**Category:** Installation / Einstieg
**Created:** [9. Januar 2021 um 19:17 UTC](https://forum.shopware.com/t/installation-shopware-production-warning-openssl-pkey-new/71992 "2021-01-09T19:17:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dbb](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@dbb](https://forum.shopware.com/u/dbb)
#### Post date: [9. Januar 2021 um 19:17 UTC](https://forum.shopware.com/t/installation-shopware-production-warning-openssl-pkey-new/71992/1 "2021-01-09T19:17:18Z")

</div>

Hallo zusammen,

beim Setup (bin/console system:setup) des Production Templates, erhalte ich folgende Fehlermeldung, nachdem ich die URL (sub.domain.local) bestätigt habe.

In SystemGenerateJwtSecretCommand.php line 78:  
Warning: openssl\_pkey\_new(): private key length is too short; it needs to be at least 384 bits, not 0

&nbsp;

Für meine lokale Entwicklung, verwende ich MAMP.  
Kennst jemand vielleicht das Problem und hat eine Lösung für mich?  
&nbsp;

Vielen Dank und beste Grüße  
Michael

&nbsp;

---

<div class="post-metadata">

### Author: ![Genji](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Genji](https://forum.shopware.com/u/Genji)
#### Post date: [24. Januar 2021 um 10:25 UTC](https://forum.shopware.com/t/installation-shopware-production-warning-openssl-pkey-new/71992/2 "2021-01-24T10:25:06Z")

</div>

Hallo,

ich habe genau das gleiche Problem.  
Hast du schon eine Lösung?

Ich suche mal weiter.

VG  
Genji

---

<div class="post-metadata">

### Author: ![dbb](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@dbb](https://forum.shopware.com/u/dbb)
#### Post date: [24. Januar 2021 um 10:39 UTC](https://forum.shopware.com/t/installation-shopware-production-warning-openssl-pkey-new/71992/3 "2021-01-24T10:39:53Z")

</div>

@Genji‍

ja, folgender Array-Zusatz in SystemGenerateJwtSecretCommand.php (openssl\_pkey\_new()) hat bei mir das Problem behoben:

```
"private_key_bits" => 384

```

Viele Grüße,  
Michael

---

<div class="post-metadata">

### Author: ![Genji](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Genji](https://forum.shopware.com/u/Genji)
#### Post date: [25. Januar 2021 um 12:39 UTC](https://forum.shopware.com/t/installation-shopware-production-warning-openssl-pkey-new/71992/4 "2021-01-25T12:39:55Z")

</div>

@dbb‍

Vielen Dank für den Tipp.  
Die Datei gibt es bei mir nicht.&nbsp;  
Die Funktion&nbsp;openssl\_pkey\_new ist bei mir in&nbsp;development/dev-ops/generate\_ssl.php.  
Dort habe ich ergänzt:

```
'private_key_bits' => 384,

```

Nun kommt der Fehler nicht mehr.

Viele Grüße  
Genji

&nbsp;
