Giter Club home page Giter Club logo

Comments (5)

lsnepomuceno avatar lsnepomuceno commented on May 20, 2024

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.

dev-guidolin avatar dev-guidolin commented on May 20, 2024

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.

lsnepomuceno avatar lsnepomuceno commented on May 20, 2024

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.

dev-guidolin avatar dev-guidolin commented on May 20, 2024

Lucas, I sent by email. :)

from laravel-a1-pdf-sign.

lsnepomuceno avatar lsnepomuceno commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.