JSignPdf / jsignpdf-php

This package is only wrapper of JSignPdf to use in PHP
21 stars 4 forks source link

fix: prevent error when read legacy cert #19

Closed vitormattos closed 4 months ago

vitormattos commented 4 months ago

Prevent error to read certificate generated with old version of openssl and using a newest version of openssl.

To check the password is necessary to repack the certificate using openssl command. If the command don't exists, will consider that the password is invalid.

Reference:

https://github.com/php/php-src/issues/12128 https://www.php.net/manual/en/function.openssl-pkcs12-read.php#128992