Cannot download the APT GPG Key for "packages.gitlab.com" on Ubuntu 24.04 : OpenSSL: error:0A000126:SSL routines::unexpected eof while reading
Hi, I cannot download the APT GPG Key for packages.gitlab.com on Ubuntu 24.04 with wget
:
$ https_proxy=http://x.y.z.t:80/HTTPS/// wget -d https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
DEBUG output created by Wget 1.21.4 on linux-gnu.
Reading HSTS entries from /home/myUser/.wget-hsts
URI encoding = ‘UTF-8’
URI encoding = ‘UTF-8’
Converted file name 'gpgkey' (UTF-8) -> 'gpgkey' (UTF-8)
--2024-08-21 12:27:33-- https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
Connecting to x.y.z.t:80... connected.
Created socket 3.
Releasing 0x000057cbbbc2fa50 (new refcount 0).
Deleting unused 0x000057cbbbc2fa50.
---request begin---
CONNECT packages.gitlab.com:443 HTTP/1.1
User-Agent: Wget/1.21.4
Host: packages.gitlab.com:443
---request end---
proxy responded with: [HTTP/1.0 200 Connection established
]
Initiating SSL handshake.
SSL handshake failed.
OpenSSL: error:0A000126:SSL routines::unexpected eof while reading
Closed fd 3
Unable to establish SSL connection.
$
And curl
says :
$ https_proxy=http://x.y.z.t:80/HTTPS/// curl -v -fsSL https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
* Uses proxy env variable https_proxy == 'http://x.y.z.t:80/HTTPS///'
* Trying x.y.z.t:80...
* Connected to x.y.z.t (x.y.z.t) port 80
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to packages.gitlab.com:443
> CONNECT packages.gitlab.com:443 HTTP/1.1
> Host: packages.gitlab.com:443
> User-Agent: curl/8.5.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.0 200 Connection established
<
* CONNECT phase completed
* CONNECT tunnel established, response 200
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.gitlab.com:443
* Closing connection
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.gitlab.com:443
$
Can you please help ?
Edited by SebM