Add missing dependencies and ca retrieval