I have a problem with a handshake
He should have the answer as in the link below
It’s the same for Apache
root@ftp:~# certbot --nginx -d sftp.domain.pl
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel): service-it@domain.pl
An unexpected error occurred:
Traceback (most recent call last):
_ File “/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py”, line 417, in wrap_socket_
_ cnx.do_handshake()_
_ File “/usr/lib/python3/dist-packages/OpenSSL/SSL.py”, line 1426, in do_handshake_
_ self.raise_ssl_error(self.ssl, result)
_ File “/usr/lib/python3/dist-packages/OpenSSL/SSL.py”, line 1174, in raise_ssl_error
_ raise_current_error()
_ File "/usr/lib/python3/dist-packages/OpenSSL/util.py", line 48, in exception_from_error_queue
_ raise exception_type(errors)
OpenSSL.SSL.Error: [(‘SSL routines’, ‘tls_process_server_certificate’, ‘certificate verify failed’)]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
_ File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 594, in urlopen_
_ chunked=chunked)_
_ File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 350, in make_request
_ self.validate_conn(conn)
_ File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 837, in validate_conn
_ conn.connect()_
_ File “/usr/lib/python3/dist-packages/urllib3/connection.py”, line 323, in connect_
_ ssl_context=context)_
_ File “/usr/lib/python3/dist-packages/urllib3/util/ssl_.py”, line 324, in ssl_wrap_socket_
_ return context.wrap_socket(sock, server_hostname=server_hostname)_
_ File “/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py”, line 424, in wrap_socket_
_ raise ssl.SSLError(‘bad handshake: %r’ % e)_
ssl.SSLError: (“bad handshake: Error([(‘SSL routines’, ‘tls_process_server_certificate’, ‘certificate verify failed’)],)”,)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
_ File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 423, in send_
_ timeout=timeout_
_ File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 624, in urlopen_
_ raise SSLError(e)_
requests.packages.urllib3.exceptions.SSLError: (“bad handshake: Error([(‘SSL routines’, ‘tls_process_server_certificate’, ‘certificate verify failed’)],)”,)
During handling of the above exception, another exception occurred:
requests.exceptions.SSLError: (“bad handshake: Error([(‘SSL routines’, ‘tls_process_server_certificate’, ‘certificate verify failed’)],)”,)
Please see the logfiles in /var/log/letsencrypt for more details.