support https and add key