In message <[EMAIL PROTECTED]> on Thu, 26 May 2005 11:34:20 +0100, David 
Woodroffe <[EMAIL PROTECTED]> said:

dwoodroffe> I am currently trying to use openSSL with an nCipher HSM
dwoodroffe> for signing and verfication. At the moment we are using
dwoodroffe> the with-nfast predicate for the application to access the
dwoodroffe> keys and this works fine.  However this asks for a
dwoodroffe> passphrase interactively which we do not want rather we
dwoodroffe> would pass it in at startup from an initialisation file 
dwoodroffe> (encrypted). I also noticed ENGINE_load_private_key etc
dwoodroffe> use a UI_method prompting for passphrase. Is there any way
dwoodroffe> of initialising the engine and keys etc without any user
dwoodroffe> interaction?

Look for struct pw_cb_data in apps/apps.h and the functions ui_open(),
ui_read(), ui_write(), ui_close(), setup_ui_method(),
destroy_ui_method() and password_callback() in apps/apps.c in the
OpenSSL source code and let yourself get inspired :-).

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         [EMAIL PROTECTED]
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to