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

SSL certificate problem #12

Closed
fillmore-admin opened this issue Sep 11, 2019 · 6 comments
Closed

SSL certificate problem #12

fillmore-admin opened this issue Sep 11, 2019 · 6 comments

Comments

@fillmore-admin
Copy link

PHP Fatal error: Uncaught Api2Pdf\Exception\ProtocolException: SSL certificate problem: unable to get local issuer certificate in vendor\api2pdf\api2pdf.php\src\Api2Pdf.php:128

Do you have a support page on what I'm missing here? My server does use an SSL cert, I'm not sure what my next step is.

@apexdodge
Copy link
Contributor

Hello, this stackoverflow post is relevant to you: https://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-unable-to-get-local-issuer-certificate

Couple options:

  1. You could fork the repository and modify the code to add this line to make unsecure connections:

image

  1. You could follow the other recommendations about adding the certificates to your server

  2. You don't need to use the php library. You can write your own PHP code that does unsecure connections by following the rest API here: https://www.api2pdf.com/documentation

Thanks

@fillmore-admin
Copy link
Author

fillmore-admin commented Sep 11, 2019 via email

@apexdodge
Copy link
Contributor

You have to see option 2 and the guidance offered in the responses in that stackoverflow post here: https://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-unable-to-get-local-issuer-certificate

It's likely some configuration issue in your server that you have to resolve. Not something we have expertise in so we can't provide further guidance.

@fillmore-admin
Copy link
Author

You have to see option 2 and the guidance offered in the responses in that stackoverflow post here: https://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-unable-to-get-local-issuer-certificate

It's likely some configuration issue in your server that you have to resolve. Not something we have expertise in so we can't provide further guidance.

Sorry my bad, I see the link is for getting the SSL/https working. Thank you for your help!

@fillmore-admin
Copy link
Author

You have to see option 2 and the guidance offered in the responses in that stackoverflow post here: https://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-unable-to-get-local-issuer-certificate

It's likely some configuration issue in your server that you have to resolve. Not something we have expertise in so we can't provide further guidance.

This was PERFECT. Fixed the issue in minutes without having to use unsecure calls.
Thank you!!!!!

@apexdodge
Copy link
Contributor

Awesome, glad you got it figured out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants