My suggestion is to use some kind of RAM disk. Or rewrite BIO's file functions to use RAM instead of files. It's not too difficult to write custom versions of fseek, fopen, fget, etc.
For the password, you can either accept the password from the user (either from a textbox in a window, a keyboard or a pen on the Palm OS, etc) and/or use a fixed password. The code below will allow you to bypass the necessity for a TTY keyboard input: This function call does it: SSL_CTX_set_default_passwd_cb(ssl_ctx,pem_passwd_cb); ssl_ctx is your SSL context. Then you define this routine: int pem_passwd_cb(char *buf, int size, int rwflag, void *password) { strncpy(buf, (char *)"password_goes_here", size); buf[size - 1] = '\0'; return(strlen(buf)); } And your password goes in the strncpy. Jeremy. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]