Keys and ssl fix