Opened 3 years ago

Last modified 3 years ago

#927 new Bug / Defect

Incorrect comment syntax used in easy-rsa "vars" script

Reported by: AlexVP Owned by:
Priority: trivial Milestone:
Component: easy-rsa Version: OpenVPN 2.4.3 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

I'm using Microsoft Windows 10 Professional. My output for openvpn --version is:

OpenVPN 2.4.3 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Jul 14 2017
library versions: OpenSSL 1.0.2l  25 May 2017, LZO 2.10
Windows version 6.2 (Windows 8 or greater) 64bit
Originally developed by James Yonan
Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_iproute2=no enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=no enable_plugin_down_root=no enable_plugins=yes enable_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=yes enable_small=no enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=no enable_werror=no enable_win32_dll=yes enable_x509_alt_username=no with_aix_soname=aix with_crypto_library=openssl with_gnu_ld=yes with_mem_check=no with_special_build= with_sysroot=no

... and the installation filename is openvpn-install-2.4.3-I602.

This issue is trivial, easy to fix, causes no other problems and doesn't worry any reasonably familiar user, but I guess I should report it anyway.

In the easy-rsa folder at C:\Program Files\OpenVPN\easy-rsa, in the vars.bat script, are the following lines (25 and 26):

# Private key size
set KEY_SIZE=4096

This looks okay for any *nix platform, but Windows uses rem, not # for comments. When running the script, this creates the scary error message:

'#' is not recognized as an internal or external command,
operable program or batch file.

The correct line in vars.bat would be:

rem Private key size
set KEY_SIZE=4096

I guess this is just a slip-up, since the rest of the comment lines use rem as expected.

Change History (1)

comment:1 Changed 3 years ago by tincantech

grep me

Note: See TracTickets for help on using tickets.