Skarmark ssl bugfixes