ssl support

ssl support + small rubocop fix