I managed it! I uninstalled wget and installed wget-ssl and after that it worked!
Thank you!