Adds ssl middleware