Template cpp CA file