I got a question about the openvpn verify_x509_name char array size.
First of all, this is not a big deal, as I can remove the verification or put it in the custom config. Just trying to understand if that's something intended or if can be improved.
Is there a reason why only 32 (31 chars with '\0') for NAME of verify-x509-name?
Code below:
While the webui has a maxlength of 255:
I have a host name of more than 32 characters (and under 255). Although the webui shows the full value, openvpn will fail to verify cause the value is truncated to the first 31 chars.
First of all, this is not a big deal, as I can remove the verification or put it in the custom config. Just trying to understand if that's something intended or if can be improved.
Is there a reason why only 32 (31 chars with '\0') for NAME of verify-x509-name?
Code below:
asuswrt-merlin.ng/release/src/router/libovpn/openvpn_config.h at ccb1dc2d7435fd99253a351b0fa31285aa5dca69 · RMerl/asuswrt-merlin.ng
Third party firmware for Asus routers (newer codebase) - RMerl/asuswrt-merlin.ng
github.com
Code:
char verify_x509_name[32]; //NAME of verify-x509-name
While the webui has a maxlength of 255:
asuswrt-merlin.ng/release/src/router/www/Advanced_OpenVPNClient_Content.asp at 7df4c262c7456266a2457811b80330526ee93376 · RMerl/asuswrt-merlin.ng
Third party firmware for Asus routers (newer codebase) - RMerl/asuswrt-merlin.ng
github.com
Code:
<label style="padding-left:3em;" id="client_cn_label">Value:</label><input type="text" maxlength="255" class="input_22_table" id="vpn_client_cn" name="vpn_client_cn" value="<% nvram_get("vpn_client_cn"); %>">
I have a host name of more than 32 characters (and under 255). Although the webui shows the full value, openvpn will fail to verify cause the value is truncated to the first 31 chars.