218
Views
11
Comments
Solved
[Ultimate PDF] I can't print with an invalid SSL certificate
Question
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes

Hi guys,

I'm trying to generate a PDF on an environment with SSL certificate issues and facing net::ERR_CERT_COMMON_NAME_INVALID error.

any URL without certificate issues is working fine.

Is there any bypass to this issue?


2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Anderson. Could you check if version 2.0.2 fixes your issues?

Thanks.

2021-08-30 15-28-09
Leandro Correa

Look it obvious but I have to ask... Did you try to replace https to http?

2018-04-04 13-27-11
Anderson Solano

Hi Leandro,

<edit>

yes I tried, same error.

I realized that I only experimented with the demo module or relative URL in my code.

Using the HTTPRequestHandler > MakeAbsoluteURL action to build the URL worked fine.

</edit>

btw, using the demo module, when I tried the url with IP (http://127.0.0.1/ ),I got this validation message:

2018-04-04 13-27-11
Anderson Solano

about the SSL certificate issue, I found this link, might be helpful.

https://stackoverflow.com/questions/45510973/headless-chrome-ignore-certificate-errors

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Anderson. Could you check if version 2.0.2 fixes your issues?

Thanks.

2018-04-04 13-27-11
Anderson Solano

Hi Leonardo,

the demo is working fine, but the SSL certificate issue persists.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Anderson. Is your SSL certificate valid? If it's not valid, then the component is behaving as expected.

With the newer version, you can use http to render a screen. There was some code in the previous version that was forcing https, but not anymore.

2018-04-04 13-27-11
Anderson Solano

Hi Leonardo,

yes, the certificate is valid, but not for one specific URL we use to do a few tests.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Can you use http for your tests?

2018-04-04 13-27-11
Anderson Solano

it's not ideal, but yes I can.

UserImage.jpg
周 芝敏

hi All, I want to know the problem has been solved? I have the same problem now.

UserImage.jpg
Olivia Graciyna

I ran into the same net::ERR_CERT_COMMON_NAME_INVALID error while generating a PDF from a site with SSL issues. As a temporary workaround, I used a URL without SSL problems or hosted the content locally. You can also try setting your environment to ignore SSL errors only for testing, but it’s best to fix the certificate issue for production use. This error is faced from a misconfiguration of certificates on server and it can disrupt the secure connection between a user and a website. 

Beyond its technical origins, this error can also be triggered by various factors such as third-party extensions, security programs like antivirus and firewalls, and more. I found out the helpful resource guide for the error solution in detail.

Hope it helps!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.