Problem/Motivation
https://curl.se/libcurl/c/libcurl-errors.html#CURLEPEERFAILEDVERIFICATION
Unhandled link error https://agewell-nce.ca/about-us has been found: : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://agewell-nce.ca/about-us.
Unhandled link error https://agewell-nce.ca/archives/8923 has been found: : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://agewell-nce.ca/archives/8923.
Unhandled link error https://cmd-f.nwplus.io has been found: : cURL error 3:
Unhandled link error https://modularity.info/ has been found: : cURL error 60: SSL: no alternative certificate subject name matches target host name 'modularity.info' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://modularity.info/.
Unhandled link error https://modularity.info/conference/2015/ has been found: : cURL error 60: SSL: no alternative certificate subject name matches target host name 'modularity.info' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://modularity.info/conference/2015/.
Unhandled link error https://quickbooks.intuit.com/ has been found.
Unhandled link error https://www.cdgdc.edu.cn/xwyyjsjyxx/aboutus/intro/277270.shtml has been found.
Unhandled link error https://www.chairs-chaires.gc.ca/ has been found: : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.chairs-chaires.gc.ca/.
Unhandled link error https://www.cs.bham.ac.uk/internal/modules/2012/06-23636/ has been found: : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.cs.bham.ac.uk/internal/modules/2012/06-23636/.
Unhandled link error https://www.cs.bham.ac.uk/internal/modules/2012/06-23899/ has been found: : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.cs.bham.ac.uk/internal/modules/2012/06-23899/.
Unhandled link error https://www.cs.bham.ac.uk/internal/modules/2016/06-02578/ has been found: : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.cs.bham.ac.uk/internal/modules/2016/06-02578/.
Unhandled link error https://www.cs.bham.ac.uk/internal/modules/2016/06-20008/ has been found: : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.cs.bham.ac.uk/internal/modules/2016/06-20008/.
Unhandled link error https://www.eluta.ca/ has been found.
Unhandled link error https://www.techinterview.org/ has been found: : cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.techinterview.org/.
Steps to reproduce
Proposed resolution
Find a way to conditionally or otherwise skip reporting the cert errors or ignore them.
Guzzle equivalent to
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | linkchecker-disable-ssl-verify-3402569-7.patch | 375 bytes | idflood |
Issue fork linkchecker-3402569
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
eiriksmI think we already have an alter hook or event for changing the headers of the request. Maybe we can add one for guzzle options as well at least, as a first step?
Comment #3
joelpittet@eiriksm thanks for the reply.
Here's the docs
https://docs.guzzlephp.org/en/stable/request-options.html?highlight=veri...
I'm torn on this turning "verify": FALSE option as it says "don't" in the docs, but we can't control other people's poor SSL practices...
Here's an MR that tries to get the ball rolling and something we can test to see if it solves part of the problem.
Comment #4
joelpittetShould anybody need to care about their out bound links SSL certs?
Comment #6
joelpittetComment #7
idflood commentedHere is a patch file with the change from the merge request.
Comment #8
xjkwak commentedI had the issue in my local environment only. I fixed it by adding this one line to my local settings.php `settings.local.php`:
With this config, no patch is needed any patch for it.
Comment #9
joelpittetMoving to 2.1.x branch targetting.
Comment #10
joelpittetAdded a configurable "Verify SSL certificates" setting under Check settings on the admin form, rather than hardcoding
verify => FALSE.check.verify_sslwith config schema and install default/admin/config/content/linkcheckerunder Check settingsComment #11
joelpittetThe test failures are fixed here #3582328: Fix broken tests blocking CI pipeline success
Comment #12
lambert commented> Added a configurable "Verify SSL certificates" setting
Thank you for taking this non-opinionated approach.
Comment #13
joelpittettests passing again, ready for review again.