Osclass Support Forums

Osclass plugin support => Invoice Osclass Plugin => Topic started by: Alex_PY on January 03, 2023, 09:30:38 PM

Title: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: Alex_PY on January 03, 2023, 09:30:38 PM
Hi!

After installing a paid plugin, I cannot get the finished PDF file. The whole file consists of a logo and an inscription:
CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized

I found this on the internet:
If you get curl error “(60) peer's certificate issuer is not recognized” while trying to curl something from another server, it means that your server does not have target's server trusted certificates. To solve this in a quick way, we can bypass the error simply adding “-k” or “–insecure” to curl.

How can I solve this problem?

Maybe it was worth adding the "ignore certificate" checkbox to the plugin settings so that the plugin itself replaces this key when curl is running?

Sincerely, Alex.
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: MB Themes on January 03, 2023, 09:57:50 PM
But you are not getting response from another server, do you?
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: Alex_PY on January 03, 2023, 10:18:18 PM
From what server?
I misunderstood you.

The invoice plugin is on my local server. The OSclass pay plugin is also on my local server.

What information do I need to provide you?

Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: Alex_PY on January 03, 2023, 10:20:53 PM
I have cognitive dissonance in general.

I bought software from you for about 800 euros, and I (not a programmer, not a programmer at all) have to figure out how to put it all together and make it work fine.
Don't you think this is strange? :)
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: Alex_PY on January 03, 2023, 10:27:45 PM
Here is a list of invoices generated by osclass pay. They all have the same error
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: MB Themes on January 04, 2023, 09:02:34 AM
@Alex_PY
Plugin curl it's page, means such error is returned from curl on your server calling your server.
So problem is with your SSL certificate.

You can try to disable verification, in plugin functions.php, find line:
Code: [Select]
  curl_setopt($curl, CURLOPT_HEADER, false);

Bellow it add following:
Code: [Select]
  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);

Don't you think this is strange? :)
No until you run on localhost that 99% people cannot guarantee it is well-configured from all possible aspects.

Anyway we've updated invoice plugin as well, you can try that first.
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: Alex_PY on January 04, 2023, 11:21:27 AM
Thank you very much, everything worked. I saw in you professional technical support. Have a nice day!
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: MB Themes on January 04, 2023, 11:29:43 AM
Glad to hear that ;)
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: Alex_PY on January 04, 2023, 11:47:22 AM
Glad to hear that ;)

Sorry, one more question.
Can you please tell me about the electronic stamp that I upload on the settings page - should it be in the lower right corner of the invoice?
I simply do not have it, and I do not understand what needs to be done to make it appear.
Stamp file - 240x60 pixels, PNG. As recommended in the hint.
Title: Re: CURL error when generating PDF: [60] Peer's Certificate issuer is not recognized
Post by: MB Themes on January 04, 2023, 03:53:48 PM
Yes, you should see it in plugin configuration as well.