fixes for certifacate key