Opened 8 years ago

Closed 7 years ago

#239 closed Bug / Defect (fixed)

--show-pkcs11-ids does not work

Reported by: maxcus Owned by: Eric Crist
Priority: major Milestone:
Component: Certificates Version: OpenVPN 2.3-beta / 2.3-RC (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: show-pkcs11-ids
Cc:

Description

The show-pkcs11-ids options does not work with the 2.3 rc version. I get the following error.

Program: C:\Programmi\OpenVPN_2.3_rc1\bin\openvpn.exe
File: pkcs11h-util.c, Line 132

Expression: source!=NULL

The version 2.2.2 is not affected of this bug.

Below the output of version 2.2.2 and version 2.3_rc:

C:\Programmi>cd OpenVPN_2.2.2

C:\Programmi\OpenVPN_2.2.2>cd bin

C:\Programmi\OpenVPN_2.2.2\bin>openvpn.exe --version
OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Originally developed by James Yonan
Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>

 config_all.py

Compile time defines:  ENABLE_HTTP_PROXY=1, ENABLE_DEBUG=1, ENABLE_MANAGEMENT=1,
 ENABLE_CLIENT_SERVER=1, ENABLE_PASSWORD_SAVE=1, ENABLE_CLIENT_ONLY=0, ENABLE_SO
CKS=1, ENABLE_FRAGMENT=1,

C:\Programmi\OpenVPN_2.2.2\bin>openvpn.exe --show-pkcs11-ids c:\Windows\system32
\etpkcs11.dll

The following objects are available for use.
Each object shown below may be used as parameter to
--pkcs11-id option please remember to use single quote mark.

Certificate
       DN:  ......
	.............
	....

C:\Programmi\OpenVPN_2.2.2\bin>cd ..\..\OpenVPN_2.3_rc1\bin

C:\Programmi\OpenVPN_2.3_rc1\bin>openvpn.exe --version
OpenVPN 2.3_rc1 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6
] built on Nov  6 2012
Originally developed by James Yonan
Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
Compile time defines: enable_crypto=yes enable_debug=no enable_def_auth=yes enab
le_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown e
nable_eurephia=yes enable_fast_install=needless enable_fragment=yes enable_http_
proxy=yes enable_iproute2=no enable_libtool_lock=yes enable_lzo=yes enable_lzo_s
tub=no enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dl
open=no enable_password_save=yes enable_pedantic=no enable_pf=yes enable_pkcs11=
yes enable_plugin_auth_pam=no enable_plugin_down_root=no enable_plugins=yes enab
le_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_s
hared_with_static_runtimes=yes enable_small=no enable_socks=yes enable_ssl=yes e
nable_static=yes enable_strict=no enable_strict_options=no enable_systemd=no ena
ble_win32_dll=yes enable_x509_alt_username=no with_crypto_library=openssl with_g
nu_ld=yes with_mem_check=no with_plugindir='$(libdir)/openvpn/plugins' with_spec
ial_build=

C:\Programmi\OpenVPN_2.3_rc1\bin>openvpn.exe --show-pkcs11-ids c:\Windows\system
32\etpkcs11.dll

The following objects are available for use.
Each object shown below may be used as parameter to
--pkcs11-id option please remember to use single quote mark.
Assertion failed!

Program: C:\Programmi\OpenVPN_2.3_rc1\bin\openvpn.exe
File: pkcs11h-util.c, Line 132

Expression: source!=NULL

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Programmi\OpenVPN_2.3_rc1\bin>

Thanks

Change History (2)

comment:1 Changed 8 years ago by adj

Thanks for the heads-up, we happened to run into this error yesterday too. A patch is up on the mailing list.

comment:2 Changed 7 years ago by Samuli Seppänen

Resolution: fixed
Status: newclosed

This was fixed by this commit.

Note: See TracTickets for help on using tickets.