Closed Jaspur closed 6 years ago
Are you sure your Certificate Store is correct? The error (it could be more descriptive and better handled, I agree) happens because, when reading the certificate store, it couldn't find the certificate on it.
Can you try, using tinker, to read the certificate store and see its contents? Something like
$certs = [];
openssl_pkcs12_read(file_get_contents(config('passgenerator.certificate_store_path')), $certs, 'YOURPASSWORD');
This should return true
, and if so, you can output the contents of $certs
, it should be an array containing, at least, a key cert
(your certificate) and a key pkey
(your private key).
If the $certs
array doesn't contain those, there is something wrong with it, try generating it again following the (tedious) instructions on the README.
Good luck!
@j3j5 regenerated the certificate and "works" now, but still error:
openssl_pkcs7_sign(): error opening input file home/forge/xx.com/storage/app/passgenerator/4Gu5Ko6jOUy1XIuR1zVnei2BKfzQEne0jasZnMd6YJ0gvIMVdGl9A3J5H55t/manifest.json!
But there is no such for nor folder.
It's because I set my default storage to S3. And you don't mention in the docs that you have to add a filesystem disk yourself named passgenerator
.
I was thinking it would have to do with that, it is true the docs don't mention the passgenerator
disk, but the package it's made in such a way that if you don't do that, it uses the default one. We didn't take into account that someone would use the default
as S3.
I'll try to make some time to improve the readme.
I am getting this error even though i generated the certificate file
can you help me sort this out
Getting undefined index error.
This config:
And the correct password for
certificate_store_password
in the.env
Why is this? I'm using by default
s3
for Storage.