Verify return code: 27 (certificate not trusted)

Looks just fine here, openssl s_client is sometimes a bit finicky on some systems, try setting -CAfile or -CApath explicitly. Or maybe it’s just to old? https://www.ssllabs.com/ssltest/analyze.html?d=moodle.scel-vske.cz suggests your available cipersuites are incompatible with 0.9.8.