Hi All,
I am new to OPenssl programming.
I have searched the previous posts in the forum before posting my problem.
I am trying to execute some sample applications given with Openssl code
(openssl-0.9.8) to get basic understanding of how Openssl works.
Below is the code sample that I have used.
main()
{
SSL_library_init();
SSL_load_error_strings();
SSLeay_add_ssl_algorithms();
meth = SSLv23_server_method();
ctx = SSL_CTX_new (meth);
SSL_CTX_use_certificate_file(ctx, CERTF, SSL_FILETYPE_PEM);
.......
.......
.......
}
But while executing SSL_CTX_use_certificate_file(), it throws an Illegal
instruction while calling PEM_read_bio_X509(); internally.
PEM_read_bio_X509(in,NULL,ctx->default_passwd_callback,ctx->default_passwd_callback_userdata);
I have found that
ctx->default_passwd_callback is NULL,
ctx->default_passwd_callback_userdata is NULL
I donot understand why these are NULL. I am supposed to call / initialize
anything before I call SSL_CTX_use_certificate_file(); inorder to initialize
these callbacks.
Please let me know on what is the problem , also how to resolve this issue.
Thanks & Regards,
Siddeswar.
--
View this message in context:
http://old.nabble.com/Problem-using-SSL_CTX_use_certificate_file%28%29--Throws-Illegal-instruction-tp27983064p27983064.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]