Make it work with https. Part II