On Wed, Feb 10, 2010 at 12:49 PM, Samuel123smith
<samuel123sm...@gmail.com> wrote:
>
> Hi ALL,
>
> I am trying to use openssl pkcs11 engine . I have more than pkcs11 provider
> and I want my customer to specify which pkcs11 provider they want to use .
> For this I am thinking to modify the openssl.cnf file and
> have one option
>
> pkcs11_lib32=/usr/lib/pkcs11/opencryptoki.so
> pkcs11_lib64=/usr/lib/pkcs11/opencryptoki64.so.
>
> I have modified the existing openssl.cnf
>
> openssl_conf            = openssl_def
>
> [openssl_def]
>        engines = engine_section
>
> [engine_section]
>        pkcs11 = pkcs11_section
>
> [pkcs11_section]
>        engine_id = pkcs11
>        default_algorithms = ALL
>        pkcs11_lib32=/usr/lib/pkcs11/ibm_pkcs11.so
>
> But when I run openssl command ,It throws me the error message .
>
> ./openssl dgst -sha1 -engine pkcs11 /home
>
> Error configuring OpenSSL
> 368876:error:260AC089:engine routines:INT_CTRL_HELPER:invalid cmd
> name:eng_ctrl.c:134:
> 368876:error:260AB089:engine routines:ENGINE_ctrl_cmd_string:invalid cmd
> name:eng_ctrl.c:316:
> 368876:error:0E07606D:configuration file routines:MODULE_RUN:module
> initialization error:conf_mod.c:235:module=engines, value=engine_section,
> retcode=-1

The error message looks similar to what I was getting with a engine
description in openssl.conf. Try this patch
http://cvs.openssl.org/chngview?cn=19261 to get more debug info.

-- 
Dmitry Ivanov
KDE PIM developer (pim.kde.org)
partimage-ng developer (partimage-ng.net)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to