/srv/irclogs.ubuntu.com/2022/03/06/#ubuntu-next.txt

alkisgNo idea about this PPA's future, I only know it's there now...04:58
lotuspsychje_what about alkisg ?05:02
=== lotuspsychje_ is now known as lotuspsychje
alkisgAbout the firefox PPA mentioned above05:03
lotuspsychjeoh, i wasnt folowwing05:03
manderHello, I need some help, this morning the audio output has suddenly disappeared, I can only see "Dummy Output". I tried to reinstall alsa and to add the line "options snd-hda-intel model=generic" at the end of alsa-base.conf with no luck, can you guys help me? I'm on ubuntu 22.0410:49
dominiqueHello !   I need info or help about what appears to be related to OpenSSL 3.0 coming with Jammy 16:36
lotuspsychjedominique: please state your issue in the channel, so volunteers can help debug you better16:38
dominiqueProblem happens with python3 request module, used by a script we use to connect our Global Protect VPN.   16:40
dominiqueUsing python3, >>> import requests16:41
dominique>>> import requests16:41
dominique>>> r = requests.get('16:41
dominique>>> r = requests.get('some_server_apparently_not_supporting_legacy_renegotiation')16:42
dominiqueTraceback (most recent call last):16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen16:43
dominique    httplib_response = self._make_request(16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request16:43
dominique    self._validate_conn(conn)16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn16:43
dominique    conn.connect()16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 411, in connect16:43
dominique    self.sock = ssl_wrap_socket(16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket16:43
dominique    ssl_sock = _ssl_wrap_socket_impl(16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl16:43
dominique    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)16:43
dominique  File "/usr/lib/python3.10/ssl.py", line 512, in wrap_socket16:43
dominique    return self.sslsocket_class._create(16:43
dominique  File "/usr/lib/python3.10/ssl.py", line 1070, in _create16:43
dominique    self.do_handshake()16:43
dominique  File "/usr/lib/python3.10/ssl.py", line 1341, in do_handshake16:43
dominique    self._sslobj.do_handshake()16:43
dominiquessl.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)16:43
dominiqueDuring handling of the above exception, another exception occurred:16:43
dominiqueTraceback (most recent call last):16:43
dominique  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send16:43
dominique    resp = conn.urlopen(16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen16:43
dominique    retries = retries.increment(16:43
dominique  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment16:43
dominique    raise MaxRetryError(_pool, url, error or ResponseError(cause))16:43
dominiqueurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='vpn-mtl.intelerad.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))16:43
dominiqueDuring handling of the above exception, another exception occurred:16:43
dominiqueTraceback (most recent call last):16:43
dominique  File "<stdin>", line 1, in <module>16:43
dominique  File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get16:43
dominique    return request('get', url, params=params, **kwargs)16:43
dominique  File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request16:43
dominique    return session.request(method=method, url=url, **kwargs)16:43
dominique  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request16:44
dominique    resp = self.send(prep, **send_kwargs)16:44
dominique  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send16:44
dominique    r = adapter.send(request, **kwargs)16:44
dominique  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 514, in send16:44
dominique    raise SSLError(e, request=request)16:44
dominiquerequests.exceptions.SSLError: HTTPSConnectionPool(host='vpn-mtl.intelerad.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))16:44
dominique>>> 16:44
lotuspsychje!paste | dominique 16:44
ubottudominique: For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.16:44
dominiqueoh !  sorry, first time here. 16:45
lotuspsychjedont worry dominique i should have mentioned it in the first place16:46
Maikno worries dominique :)16:46
dominique>>> import requests16:47
dominique>>> r = requests.get('https://vpn-mtl.intelerad.com')16:48
dominiqueTraceback (most recent call last):16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen16:48
dominique    httplib_response = self._make_request(16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request16:48
dominique    self._validate_conn(conn)16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn16:48
dominique    conn.connect()16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 411, in connect16:48
dominique    self.sock = ssl_wrap_socket(16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket16:48
dominique    ssl_sock = _ssl_wrap_socket_impl(16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl16:48
dominique    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)16:48
dominique  File "/usr/lib/python3.10/ssl.py", line 512, in wrap_socket16:48
dominique    return self.sslsocket_class._create(16:48
dominique  File "/usr/lib/python3.10/ssl.py", line 1070, in _create16:48
dominique    self.do_handshake()16:48
dominique  File "/usr/lib/python3.10/ssl.py", line 1341, in do_handshake16:48
dominique    self._sslobj.do_handshake()16:48
dominiquessl.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)16:48
dominiqueDuring handling of the above exception, another exception occurred:16:48
dominiqueTraceback (most recent call last):16:48
dominique  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send16:48
dominique    resp = conn.urlopen(16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen16:48
dominique    retries = retries.increment(16:48
dominique  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment16:48
dominique    raise MaxRetryError(_pool, url, error or ResponseError(cause))16:48
dominiqueurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='vpn-mtl.intelerad.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))16:48
dominiqueDuring handling of the above exception, another exception occurred:16:48
dominiqueTraceback (most recent call last):16:48
dominique  File "<stdin>", line 1, in <module>16:48
dominique  File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get16:48
dominique    return request('get', url, params=params, **kwargs)16:48
dominique  File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request16:48
dominique    return session.request(method=method, url=url, **kwargs)16:48
dominique  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request16:48
dominique    resp = self.send(prep, **send_kwargs)16:48
dominique  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send16:48
dominique    r = adapter.send(request, **kwargs)16:49
dominique  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 514, in send16:49
dominique    raise SSLError(e, request=request)16:49
dominiquerequests.exceptions.SSLError: HTTPSConnectionPool(host='vpn-mtl.intelerad.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))16:49
dominiquehummm.... 16:49
dominiqueoh got it.16:49
dominiquehere : https://paste.ubuntu.com/p/PRrQDgJm8y/16:49
krytarikdominique: Another accidental paste like this I'd avoid btw..16:50
dominiqueGot it.  That was the last.  I saw that big green "Copy to clipboard" button and, I didn't had any coffee yet.  16:52
dominiqueI did the exact same from a VM with Ubuntu 21.10.  No issue.  Python requests module is the same version, openssl is 1.1.1l (I think)16:55
lotuspsychjedominique: is this you? bug #196026816:56
ubottuBug 1960268 in openssl (Ubuntu) "SSL handshake failed - VPN SSL broken in 22.04" [Undecided, New] https://launchpad.net/bugs/196026816:56
dominiqueno16:57
lotuspsychjei mean, does this affect your case16:58
dominiquefor linux users at our place, we use gp-saml-gui16:58
dominiquehttps://github.com/dlenski/gp-saml-gui16:59
lotuspsychjenot familiar with that myself16:59
dominiquehis script opens a browser from where we authenticate, on success it outputs a openconnect string we can use to open the VPN connection.17:01
lotuspsychjedominique: here's the list of most recent openssl bugs on ubuntu; https://bugs.launchpad.net/ubuntu/+source/openssl/+bugs?orderby=importance&start=017:01
lotuspsychjedominique: if you dont feel, your bug is present there, you could consider filing a new !bug from a terminal; ubuntu-bug openssl17:03
dominiqueexcellent17:03
lotuspsychjeand share the bug ID here after, maybe more logs/info might be able to enlight your issue17:04
dominiqueWill do.  Found nothing about UNSAFE_LEGACY_RENEGOTIATION_DISABLED.   Cost nothing to open one and wee where it lands.17:05
dominiqueThanks for the help.17:05
lotuspsychjewelcome dominique 17:05
tomreyni guess (have not checked) that openssl 3.0 disables / removes support for unsafe legacy renegotiation. earlier openssl releases still supported it, even though it was known to be unsafe.17:11
tomreynand apparently the script you're using expects to be able to use unsafe legacy renegotiation, which would be why it would stop working with openssl 3.017:12
tomreynthis is just a theory, though.17:12
tomreynthere are two forms of tls renegotiation - the old, 'legacy# , one, which ahs been proven to be weak / insecure. and a newer one, which is, so far, assumed to be safe to use. another option is not to renegotiate and just restart the connection, but this can be costly.17:14
tomreyndominique: ^17:15
tomreynsee "Changes between 1.1.1 and 3.0.0 [7 sep 2021]" -> "Client-initiated renegotiation is disabled by default." at https://www.openssl.org/news/changelog.html17:18
dominiqueThere is a section about renegotiation here https://www.openssl.org/docs/man3.0/man3/SSL_get_secure_renegotiation_support.html17:42
dominiqueI used ssllabs.com and could see that our server has renegotiation disabled.17:43
dominiquefrom the openssl docs, it mentions that for "Patched OpenSSL client and unpatched server", options can be set.   17:45
dominiqueBut I have no clue where SSL_OP_LEGACY_SERVER_CONNECT is set.  At compilation ?  From the module in code that calls openssl ?  17:47
lotuspsychjetnx for bug #1963834 dominique 18:54
ubottuBug 1963834 in openssl (Ubuntu) "openssl 3.0 - SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED]" [Undecided, New] https://launchpad.net/bugs/196383418:54
lotuspsychjedominique: can you also run; apport-collect 1963834 from a terminal?18:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!