In an effort to read a DER key, I have discovered that support for this feature appears to be missing from OpenSSL.
Am I missing someting or misusing the API? I thought DER and PEM were both supported. Any help woould be appreciated. >From ssl_rsa.c, here is SSL_CTX_use_PrivateKey_file (...), which apparently only supports PEM files. int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) { <<<...non-pertinent code omitted>>> if (type == SSL_FILETYPE_PEM) { j=ERR_R_PEM_LIB; pkey=PEM_read_bio_PrivateKey(in,NULL, ctx->default_passwd_callback,ctx->default_passwd_callback_userdata); } else { SSLerr(SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE,SSL_R_BAD_SSL_FILETYPE); goto end; } <<<...non-pertinent code omitted>>> } Thanks! Bill Rebey ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]