setup encrypted sessions