Open rilstrats opened 4 days ago
@rilstrats Tried to reproduce this without success. Is it possible the server / certificate in question has been fixed?
neofetch
.',;::::;,'. marco@fedora
.';:cccccccccccc:;,. ------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 40 (Forty) aarch64
.:cccccccccccccccccccccccccc:. Host: Parallels ARM Virtual Machine 0.1
.;ccccccccccccc;.:dddl:.;ccccccc;. Kernel: 6.9.4-200.fc40.aarch64
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Uptime: 1 hour, 58 mins
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:. Packages: 688 (rpm)
,cccccccccccccc;MMM.;cc;;WW::cccccccc, Shell: bash 5.2.26
:cccccccccccccc;MMM.;cccccccccccccccc: Resolution: 1024x768
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc: Terminal: /dev/pts/0
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc; CPU: (4)
ccccc:XM0';cccc;MMM.;cccccccccccccccc' GPU: 00:0a.0 Red Hat, Inc. Virtio 1.0 GPU
ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Memory: 7507MiB / 9911MiB
ccccc;0MNc.ccc.xMMd:ccccccccccccccc;
cccccc;dNMWXXXWM0::cccccccccccccc:,
cccccccc;.:odl:.;cccccccccccccc:,.
:cccccccccccccccccccccccccccc:'.
.:cccccccccccccccccccccc:;,..
'::cccccccccccccc::;,.
wget -O tpot.yml https://github.com/telekom-security/tpotce/raw/master/installer/install/tpot.yml
tpot.yml 100% [=============================================================================================================================================================================>] 3.78K --.-KB/s
[Files: 1 Bytes: 3.78K [23.23KB/s] Redirects: 1 Todo: 0 Errors: 0 ]
Interesting. I am trying this on a university campus so maybe it has something to do with network rules? I'll try it at home this afternoon and let you know.
I am happy to adjust the script to use the proposed URL, but understanding the reason why I cannot reproduce it would awesome. So looking forward to your re-test(s). Thanks for the swift feedback!
Issue
I am running the install script on Fedora Linux 40 (Server Edition). It hangs on the section
### Now downloading T-Pot Ansible Installation Playbook ...
. Looking at the source code, the command it hangs on is:The issue is that the url https://github.com/telekom-security/tpotce/raw/master/installer/install/tpot.yml redirects to https://raw.githubusercontent.com/telekom-security/tpotce/master/installer/install/tpot.yml, causing wget to hang. I've researched the reason, and it seems to be most likely caused by an untrusted certificate.
I'm happy to make a pull request if desired, just let me know which solution you'd prefer!
Solution
It seems that the easiest solution would be to replace the URL with it's resolved URL:
Please note that the issue can also be fixed using the
--no-check-certificate
, but this seems like a more insecure option.Alternative Solution
Alternatively, wget could be removed (resulting in one less item that must be downloaded), and just use
curl
:Off-Topic
Also, note that the command in the readme using curl, uses one of the links that doesn't work with wget. For some reason curl can complete the command correctly, but wget is unable to.
Perhaps this link should be changed as well?
Logs
Here is my log from debugging the command as well:
wget.log