laravel-notification-channels / webpush

Webpush notifications channel for Laravel.
http://laravel-notification-channels.com
MIT License
681 stars 119 forks source link

Generating the VAPID keys throws an error 'Unable to create the key' #157

Closed jadamec closed 3 years ago

jadamec commented 3 years ago

Generating the VAPID keys throws an error Unable to create the key.

php artisan webpush:vapid

Any suggestions or fixes, please? Screenshot_1

cretueusebiu commented 3 years ago

It all comes down from the openssl configuration. https://www.php.net/manual/en/function.openssl-pkey-export.php

jadamec commented 3 years ago

I found the solution! These issues really relates on the specific config.

FIX: https://stackoverflow.com/questions/17272809/openssl-pkey-export-and-cannot-get-key-from-parameter-1/18869750#18869750