On N66U and AC3200 (others possibly too), 380.68_4, the EXPORT button for client config file never becomes available. The reason is that the nvram variable vpn_server1_state stays 1. I checked the source code and by the end of the function call start_vpnserver() the state is set to 2 but only for cryptMode SECRET or CUSTOM, not TLS. That tells me that somewhere else the state gets set to 2 but I simply couldn't find it. If anybody has any insight into how this whole process works and where and how the vpn state is set, I would appreciate them sharing it.
I also checked the 378.53 branch and it seems the state gets set directly at the end of that function regardless of cryptMode.
I also checked the 378.53 branch and it seems the state gets set directly at the end of that function regardless of cryptMode.