Unable to Pull Function

Having error running command

root@debian:~# cd /tmp
wget https://github.com/FreePBX/sng_freepbx_debian_install/raw/master/sng_freepbx_debian_install.sh -O /tmp/sng_freepbx_debian_install.sh
bash /tmp/sng_freepbx_debian_install.sh
–2024-11-19 22:34:35-- https://github.com/FreePBX/sng_freepbx_debian_install/raw/master/sng_freepbx_debian_install.sh
Resolving github.com (github.com)… 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://raw.githubusercontent.com/FreePBX/sng_freepbx_debian_install/master/sng_freepbx_debian_install.sh [following]
–2024-11-19 22:34:36-- https://raw.githubusercontent.com/FreePBX/sng_freepbx_debian_install/master/sng_freepbx_debian_install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.109.133, 2606:50c0:8002::154, 2606:50c0:8003::154, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443… connected.
GnuTLS: Error in the pull function.
Unable to establish SSL connection.
root@debian:/tmp# ^C

Looks ok from here.

Can you view https://github.com/FreePBX/sng_freepbx_debian_install/raw/master/sng_freepbx_debian_install.sh in a browser on the same LAN ?
It should display the script, starting with

#!/bin/bash
#####################################################################################
# * Copyright 2024 by Sangoma Technologies

If not, your firewall (or possibly ISP) is likely blocking or altering the traffic. Test from your mobile on mobile data (Wi-Fi turned off).

If it shows ok in the browser, try updating the OS (apt update, apt upgrade), or reinstalling a fresh up-to-date copy.