Skip to content
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

Openssl is not recognized #71

Closed
Guervyl opened this issue Feb 6, 2023 · 2 comments
Closed

Openssl is not recognized #71

Guervyl opened this issue Feb 6, 2023 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Guervyl
Copy link

Guervyl commented Feb 6, 2023

Describe the bug
I got the error Process runtime error, reason: "'openssl' is not recognized as an internal or external command,. . operable program or batch file.. . "

To Reproduce
I have this simple code :

$app = new Container();
 $app->singleton('app', Container::class);
$app->singleton('files', fn () => new Filesystem);
Facade::setFacadeApplication($app);

$cert = new ManageCert();
$cert->fromPfx('C:/wamp64/www/facturacion electronica/WALTER ANDRES GARAY LUZURIAGA 090322112505.pfx', 'True22');

$pdf = new SignaturePdf('C:/wamp64/www/firma-doc/0202202301131234612300110010030000000013437950515.pdf', $cert, SignaturePdf::MODE_RESOURCE); // Resource mode is default
$resource = $pdf->signature();

Expected behavior
It was supposed to work.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions involved:

  • Not using laravel
@Guervyl Guervyl added bug Something isn't working help wanted Extra attention is needed labels Feb 6, 2023
@Guervyl
Copy link
Author

Guervyl commented Feb 6, 2023

I have openssl installed on my windows 11 system.

Running the command in cmd:
openssl pkcs12 -in C:/wamp64/www/facturacion electronica/WALTER ANDRES GARAY LUZURIAGA 090322112505.pfx -out C:\wamp64\www\firma-doc\vendor\lsnepomuceno\laravel-a1-pdf-sign\src/Temp/9866c6ae-de29-4bd7-bf34-76f841ecb24a.crt -nodes -password pass:Truepeak2022

Output: pkcs12: Use -help for summary.

Looks like this library is deprecated.

@lsnepomuceno
Copy link
Owner

Hello @Guervyl ,

The error reported is that the openssl extension was not found on your server and has nothing to do with the package.

Windows openssl is not connected directly to xampp openssl or another web server, it is necessary that the dependencies are installed and enabled on your server.

Please validate if the extension is enabled on your web server as shown below:

Another piece of information is that this package and openssl are not deprecated.

Repository owner locked as resolved and limited conversation to collaborators Feb 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants