Implemented preliminar SSL middleware