fixes for gitlab on SSL connection