Comments (5)
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.
from laravel-a1-pdf-sign.
Hi Lucas, thanks a lot to reply my question.
Answer yours questions:
Laravel latest version: 9x
The password works when i open the certificate or use this:
$content = Storage::disk('local')->get($certificado->path_to_certificate);
$password= ***;
$certs = [];
openssl_pkcs12_read($content, $certs, $password);
This give me all information about certificate.
In this library, I can read the certificate.pfx normally.
https://github.com/nfephp-org/sped-common/blob/master/src/Certificate.php#L59
from laravel-a1-pdf-sign.
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: [email protected]
from laravel-a1-pdf-sign.
Lucas, I sent by email. :)
from laravel-a1-pdf-sign.
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.
from laravel-a1-pdf-sign.
Related Issues (20)
- Validate certificate exception HOT 1
- Windows env can not find openssl command HOT 4
- Wrong location of temp directory HOT 2
- Error outputting keys and certificates HOT 2
- the addPage don't make responsive page
- Mais de uma assinatura em um arquivo HOT 1
- Version alpha installation with psr-4 non compliant classes skipped ? HOT 1
- PDF timestamping while signing ? HOT 12
- SealImage error HOT 1
- Support for laravel version 6? HOT 1
- Openssl is not recognized HOT 2
- Method "setImage" has a problem HOT 3
- Assinar txt HOT 1
- Assinar txt HOT 1
- Atualização para Laravel 10 HOT 4
- problem to install HOT 1
- Included test cases fails HOT 4
- Parse error on certificate stored in DB HOT 1
- setImage() does not work unless you set setSealImgOnEveryPages() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-a1-pdf-sign.