revised gem for using ssl on DEMO