-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac verify error: invalid password #47
Comments
Hello @dev-guidolin, First we would like to thank you for using our package. Let's get to the problem... The reported error is generated by OpenSSL when the private password is not compatible with the given certificate. If possible, validate the use of the certificate with the correct password in another application. If the password is indeed correct, please let me know which version of Laravel and Package you are using. It is worth emphasizing that for users in Brazil, it is interesting that the certificate complies with the ICP-Brasil, as this will guarantee data standardization. |
Hi Lucas, thanks a lot to reply my question. The password works when i open the certificate or use this: This give me all information about certificate. In this library, I can read the certificate.pfx normally. |
The detail of the problem is precisely the method openssl_pkcs12_read(), currently the signature package by A1 only accepts certificates with x509 encryption. But this could be an opportunity for us to implement this new functionality. Could you send us a PKCS12 certificate to start testing and implementing? If possible, just send me via email: lsn.nepomuceno@gmail.com |
Lucas, I sent by email. :) |
Hello, As previously described, the package currently only supports x509-encrypted certificates. To use PKCS12 certificates it would be necessary to test with a real file accompanied by the access password. If you are interested, just send me a certificate with the password by email, I will be happy to help. |
I can't generate a certificate.
Error:
Process runtime error, reason: "Mac verify error: invalid password?. "
ManagerCert.php:
line 104
$openssl = "openssl pkcs12 -in {$pfxPath} -out {$output} -nodes -password pass:{$this->password}";
result:
openssl pkcs12 -in /var/www/digital/digital/storage/app/certificado/certificado.pfx -out /var/www/digital/digital/app/LSNepomuceno/LaravelA1PdfSign/Temp/96f30689-040a-47e0-a7e3-f43d334e2f3d.crt -nodes -password pass:***
A file has been created in /temp/ but empty file.
Any Idea?
The text was updated successfully, but these errors were encountered: