making files SSL compatible