Wrote decorator for ssl enable.