The wrong situation with certificates

I receive the same error message as described as the link https://community.blackduck.com/s/article/Blackduck-Apply-RegistrationID-Fail

When trying to install Black Duck Hub I get a cascade of error and painful confusion. When I am going to work to help Black Duck (instead of Black Duck helping us to do work), it says I should try curl to debug the problem. Then I see that curl responds that all certificates are expired, no matter what I do. This should never happen, and I have tried everything.

$ curl -vvI https://www.google.com
    *   Trying 142.251.46.228:443...
    * Connected to www.google.com (142.251.46.228) port 443 (#0)
    * ALPN, offering h2
    * ALPN, offering http/1.1
    *  CAfile: /etc/ssl/certs/ca-certificates.crt
    *  CApath: /etc/ssl/certs
    * TLSv1.0 (OUT), TLS header, Certificate Status (22):
    * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    * TLSv1.2 (IN), TLS header, Certificate Status (22):
    * TLSv1.3 (IN), TLS handshake, Server hello (2):
    * TLSv1.2 (IN), TLS header, Certificate Status (22):
    * TLSv1.2 (IN), TLS handshake, Certificate (11):
    * TLSv1.2 (OUT), TLS header, Unknown (21):
    * TLSv1.2 (OUT), TLS alert, certificate expired (557):
    * SSL certificate problem: certificate has expired
    * Closing connection 0
    curl: (60) SSL certificate problem: certificate has expired
    More details here: https://curl.se/docs/sslcerts.html
    
    curl failed to verify the legitimacy of the server and therefore could not
    establish a secure connection to it. To learn more about this situation and
    how to fix it, please visit the web page mentioned above.