add https support

sorry for the messy request, poor timing missed your latest update. please let me know if there's a better way to do this (I'm a newbie).