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?
Hi Anderson. Could you check if version 2.0.2 fixes your issues?
Thanks.
Look it obvious but I have to ask... Did you try to replace https to http?
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:
about the SSL certificate issue, I found this link, might be helpful.
https://stackoverflow.com/questions/45510973/headless-chrome-ignore-certificate-errors
Hi Leonardo,
the demo is working fine, but the SSL certificate issue persists.
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.
yes, the certificate is valid, but not for one specific URL we use to do a few tests.
Can you use http for your tests?
it's not ideal, but yes I can.
hi All, I want to know the problem has been solved? I have the same problem now.
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!