![]() > r = requests.get("https //Traceback (most recent call last):įile "/usr/lib/python3.7/site-packages/requests/api.py", line 75, in get So, again, not sure if it's Solus fault, or if I bother you for nothing, because it's the website fault, and his certificate is not good. * issuer: C=GB ST=Greater Manchester L=Salford O=Sectigo Limited CN=Sectigo RSA Domain Validation Secure Server CA * subjectAltName: host "matched cert's "*." * subject: OU=Domain Control Validated OU=COMODO SSL Wildcard CN=*. * ALPN, server did not agree to a protocol * SSL connection using TLSv1.2 / DHE-RSA-AES256-GCM-SHA384 * TLSv1.2 (IN), TLS handshake, Finished (20): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): ![]() * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/certs/ca-certificates.crt * successfully set certificate verify locations: : ĭuring handling of the above exception, another exception occurred:Ĭa-certificates version : apt show ca-certificates ![]() Type "help", "copyright", "credits" or "license" for more information.įile "/home/serge/.local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 488, in wrap_socketįile "/usr/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1915, in do_handshakeįile "/usr/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1647, in _raise_ssl_errorįile "/usr/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue With python : ~ python3 -m pip list | grep certifi How to fix it, please visit the web page mentioned above. * SSL certificate problem: certificate has expired * TLSv1.2 (OUT), TLS alert, certificate expired (557): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server hello (2): * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (OUT), TLS header, Certificate Status (22): * Cipher selection: successfully set certificate verify locations: Résumé : Certificate Authority Files ~ curl Ĭurl: (60) SSL certificate problem: certificate has expiredĬurl failed to verify the legitimacy of the server and therefore could notĮstablish a secure connection to it. Here is some details : Solus ~ eopkg info ca-certs I don't know if the problem comes from the website (deprecated certificate ?) or from Solus repo ?Ĭhrome tells me the certificate is valid (expires in 2021) : I have no problem going to the website with Chrome or Firefox.īut lately, my scripts don't work on Solus anymore. I used to have some scripts (bash and python) to work with a website ( ). I'm not even sure it's Solus related, maybe it's the website. This is equivalent to using -no-check-certificate option in wget.Little question about a problem with SSL, etc. Ignoring SSL errors is, of course, not a secure method but is helpful if you trust the website, which may or may not be owned by you. The option will skip the SSL verification process, and you'll be able to bypass any SSL error that a site might have while still having SSL-encrypted communication. You can force cURL to ignore SSL certificate errors by using the insecure option. You'll get SSL error when running cURL against https-based websites with SSL certificates that are either misconfigured, expired, or self-signed.Ĭurl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.Ĭurl: (60) SSL: no alternative certificate subject name matches target host name 'More details here: Ĭurl: (60) SSL certificate problem: unable to get local issuer certificateĬurl failed to verify the legitimacy of the server and therefore could notĮstablish a secure connection to it. CURL, by default, will ensure each SSL connection is secure by verifying the server's SSL certificate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |