[openssl-users] 回复: 回复: 回复: [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread zy_chongqing
-users] 回复: 回复: [help]SSL_CTX_use_certificate_file failed! On Tue, Sep 13, 2016 at 11:59:06PM +0800, zy_chongqing wrote: > Only this one certificate, acutually this file is used for the iOS APNs > function.the weird thing is, I use the same file and same code on other > 2 server, it work w

Re: [openssl-users] 回复: 回复: [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread Viktor Dukhovni
On Tue, Sep 13, 2016 at 11:59:06PM +0800, zy_chongqing wrote: > Only this one certificate, acutually this file is used for the iOS APNs > function.the weird thing is, I use the same file and same code on other > 2 server, it work well. That is really confused me. Then perhaps the copy of the file

[openssl-users] 回复: 回复: [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread zy_chongqing
13日(星期二) 23:46收件人:openssl-users 主 题:Re: [openssl-users] 回复: [help]SSL_CTX_use_certificate_file failed! On Tue, Sep 13, 2016 at 10:53:57PM +0800, zy_chongqing wrote: > thanks for your reply. please kindly find the attached to get the certificate. Firstly, you posted a 2048-bit certificate, wh

Re: [openssl-users] 回复: [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread Viktor Dukhovni
On Tue, Sep 13, 2016 at 10:53:57PM +0800, zy_chongqing wrote: > thanks for your reply. please kindly find the attached to get the certificate. Firstly, you posted a 2048-bit certificate, which would not normally fail with a "key too small" error, other than by failure to parse the public key. Se

[openssl-users] 回复: 回复: [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread zy_chongqing
There is not other error information. And I try to get more error message by the method as below:if (0 == SSL_CTX_use_certificate_file(m_pCtx,  RSA_CLIENT_CERT, SSL_FILETYPE_PEM)) { ERRLOG("Cannot use Certificate File:%s", ERR_error_string(  ERR_get_error(), NULL ));

[openssl-users] 回复: [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread zy_chongqing
(X509_get_extension_flags+0x2c) [0x823794c] 6 /usr/local/lib/libssl.so.1.1(+0x4dd65) [0xb76a2d65] 7 /usr/local/lib/libssl.so.1.1(SSL_CTX_use_certificate+0x41) [0xb76853c1] 8 /usr/local/lib/libssl.so.1.1(SSL_CTX_use_certificate_file+0xed) [0xb768553d] 9 ./MemoSrv() [0x80bc93b] 10 ./MemoSrv() [0x80bd32a

Re: [openssl-users] [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread Matt Caswell
false; > } > > if(0 == SSL_CTX_load_verify_locations(m_pCtx, NULL, CA_CERT_PATH)) > { > /* Handle failed load here */ > ERRLOG("Failed to set CA location:%s", ERR_error_string( > ERR_get_error(), NULL )); > return false

[openssl-users] [help]SSL_CTX_use_certificate_file failed!

2016-09-13 Thread zy_chongqing
L_CTX_load_verify_locations(m_pCtx, NULL, CA_CERT_PATH)) { /* Handle failed load here */ ERRLOG("Failed to set CA location:%s", ERR_error_string(  ERR_get_error(), NULL )); return false; } if (0 == SSL_CTX_use_certificate_file(m_pCtx, RSA_CLIENT_CERT,  S

Problem using SSL_CTX_use_certificate_file(); Throws Illegal instruction

2010-03-22 Thread Siddeswar
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

Re: SSL_CTX_use_certificate_file with UTF8 certificate file name

2009-04-01 Thread Dr. Stephen Henson
On Wed, Apr 01, 2009, AnneB wrote: > > I have generated programatically a certificate using _tfopen and > PEM_write_X509 in order to support unicode for certificate file names. > > How can I load a certificate in this case? SSL_CTX_use_certificate_file > doesn't work

SSL_CTX_use_certificate_file with UTF8 certificate file name

2009-04-01 Thread AnneB
I have generated programatically a certificate using _tfopen and PEM_write_X509 in order to support unicode for certificate file names. How can I load a certificate in this case? SSL_CTX_use_certificate_file doesn't work in my case. Thanks in advance. -- View this message in context:

win32 crash in SSL_CTX_use_certificate_file(m_app_ctx, certpath, SSL_FILETYPE_PEM)

2006-02-01 Thread Joshua Teitelbaum
that SSL_CTX_use_certificate_file(m_app_ctx, certpath, SSL_FILETYPE_PEM) causes a crash. My app calls this, but then this function (or some func thereunder I believe), somehow requests a HUGE amount data to be malloced, thus causing a fatal exception. Has anyone else experienced this problem, and gotten through it? Sor

RE: Questions on SSL_CTX_use_certificate_file

2005-05-13 Thread David Schwartz
> We're currently using the following to read a key from disk and use it > in our application: > > SSL_CTX_use_certificate_file(my_ssl_ctx_save,"./SSL/pubcert.pem",S > SL_FILETYPE_PEM); > SSL_CTX_use_PrivateKey_file(my_ssl_ctx_save,"./SSL/privkey.pem",SS

Re: Questions on SSL_CTX_use_certificate_file

2005-05-13 Thread Dr. Stephen Henson
;re currently using the following to read a key from disk and use it > in our application: > > SSL_CTX_use_certificate_file(my_ssl_ctx_save,"./SSL/pubcert.pem",SSL_FILETYPE_PEM); > SSL_CTX_use_PrivateKey_file(my_ssl_ctx_save,"./SSL/privkey.pem",SSL_FILETYPE_PEM);

Questions on SSL_CTX_use_certificate_file

2005-05-13 Thread Dan Trainor
our application: SSL_CTX_use_certificate_file(my_ssl_ctx_save,"./SSL/pubcert.pem",SSL_FILETYPE_PEM); SSL_CTX_use_PrivateKey_file(my_ssl_ctx_save,"./SSL/privkey.pem",SSL_FILETYPE_PEM); This works, however, this method is extremely slow in our multi-threaded enviornment due to disk I/

SSL_CTX_use_certificate_file

2002-07-02 Thread George Lind
I am getting an error from SSL_CTX_use_certificate_file. I am getting 33558531 error:02001003:system library:fopen:No such process. Does anyone know what this means? Thanks George __ OpenSSL Project

SSL_CTX_use_certificate_file fail with Error 151441510 under Win2K/XP

2002-05-21 Thread Dhammike Weerabaddana
Hi, Under windows 2000 / XP environment I'm getting the following error when I try to use the SSL_CTX_use_certificate_file() function with SSL_FILETYPE_PEM. The application that I have built is an NT Service and when I start it from Service Control Manager or by issuing a net start it