Re: [openssl-users] SSL_get_peer_certificate returns NULL in client_cert_cb after upgrade to openssl 1.1.1

2018-10-11 Thread Dave Wang
certificate. > >> > >> it works perfectly in openssl 1.1.0h, however it stops working after I > >> upgrade to openssl 1.1.1. > >> > >> In client_cert_cb , when I call SSL_get_peer_certificate, it returns > >> NULL, which is different from opens

Re: [openssl-users] SSL_get_peer_certificate returns NULL in client_cert_cb after upgrade to openssl 1.1.1

2018-10-11 Thread Matt Caswell
>> loaded in client_cert_cb  based on matching the server side certificate. >> >> it works perfectly in openssl 1.1.0h, however it stops working after I >> upgrade to openssl 1.1.1. >> >> In client_cert_cb , when I call SSL_get_peer_certificate, it returns

Re: [openssl-users] SSL_get_peer_certificate returns NULL in client_cert_cb after upgrade to openssl 1.1.1

2018-10-11 Thread Matt Caswell
t; upgrade to openssl 1.1.1. > > In client_cert_cb , when I call SSL_get_peer_certificate, it returns > NULL, which is different from openssl 1.1.0h. > > I do set SSL_VERIFY_PEER on both sides.  > > > any thoughts on this? I assume this only happens with

[openssl-users] SSL_get_peer_certificate returns NULL in client_cert_cb after upgrade to openssl 1.1.1

2018-10-10 Thread Dave Wang
SSL_get_peer_certificate, it returns NULL, which is different from openssl 1.1.0h. I do set SSL_VERIFY_PEER on both sides. any thoughts on this? Regards, Dave -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

SSL_get_peer_certificate giving empty certificate on Yosemite.

2014-10-17 Thread Madhavi Shashi
::RetrieveNameUsingSSL failed ,error); //printf(connect error is %d\n,error); break; } X509* server_cert = SSL_get_peer_certificate (ssl); if (server_cert != NULL) { //MessageLog.Write(Server certificate); //str = X509_NAME_oneline(X509_get_subject_name

SSL_get_peer_certificate

2010-07-30 Thread PS
If Client-server session is reused from a past session then the client will not get a Server Certificate during the handshake. In this case, if I do a SSL_get_peer_certificate(), will it give me the server's certificate from the initial handshake from which this reuse happened?

Re: SSL_get_peer_certificate fails with 0.9.8k, works with 0.9.8j

2009-05-02 Thread Kyle Hamilton
SSL_get_peer_certificate() after a successful handshake. The issue doesn't occur every time, but often enough. I reverted to OpenSSL 0.9.8j, and haven't been able to replicate the problem. To verify, I again went 0.9.8k and the issue cropped up right away. I'm using the command on a custom SSL

SSL_get_peer_certificate fails with 0.9.8k, works with 0.9.8j

2009-05-01 Thread Jeff Davey
Hi, I recently ran into an issue with OpenSSL 0.9.8k returning NULL when calling SSL_get_peer_certificate() after a successful handshake. The issue doesn't occur every time, but often enough. I reverted to OpenSSL 0.9.8j, and haven't been able to replicate the problem. To verify, I again went

Re: SSL_get_peer_certificate() failing

2008-07-30 Thread Lutz Jaenicke
before I call SSL_get_peer_certificate(). I've also verified that s-session is infact NULL before the call to SSL_get_peer_certificate(). I can still send data across the link - I've tested using BIO_read() and BIO_write() to see if the machines can communicate and I was able to successfully write

Re: SSL_get_peer_certificate() failing

2008-07-29 Thread Kyle Hamilton
28, 2008 at 7:55 PM, M [EMAIL PROTECTED] wrote: Thanks, I've read the man page for SSL_get_peer_certificate() and it says it returns NULL if No certificate was presented by the peer or no connection was established. After tracing through the code I see that SSL_get_peer_certificate() returns

Re: SSL_get_peer_certificate() failing

2008-07-29 Thread M
I know that s isn't null because I check its value before I call SSL_get_peer_certificate(). I've also verified that s-session is infact NULL before the call to SSL_get_peer_certificate(). I can still send data across the link - I've tested using BIO_read() and BIO_write() to see

SSL_get_peer_certificate() failing

2008-07-28 Thread M
Hi, I am having a problem establishing a connection with openssl libs. My client code is failing because SSL_get_peer_certificate() returns NULL. On the server code SSL_get_error() returns 1 and the error string i get is error::lib(0):func(0):reason(0) which is very unclear to me. Why

Re: SSL_get_peer_certificate() failing

2008-07-28 Thread Kyle Hamilton
DESCRIPTION SSL_get_peer_certificate() returns a pointer to the X509 certificate the peer presented. If the peer did not present a certificate, NULL is returned. Please see the manual page for SSL_get_peer_certificate for more information (including information on how to tell

Re: SSL_get_peer_certificate() failing

2008-07-28 Thread M
Thanks, I've read the man page for SSL_get_peer_certificate() and it says it returns NULL if No certificate was presented by the peer or no connection was established. After tracing through the code I see that SSL_get_peer_certificate() returns null because no connection has been established

Semantics of SSL_get_peer_certificate() - and fingerprinting

2008-07-17 Thread Kevin Easton
) Clearly in this case SSL_get_verify_result() is likely to indicate that the server certificate failed verification (because it was self-signed). However, in this situation can I still assume that the public key from the certificate (obtained with SSL_get_peer_certificate()) was the public key

SSL_get_peer_certificate()

2005-09-13 Thread Milan Tomic
Title: Message I'm retriving server SSL cert using SSL_get_peer_certificate. How can I compare this cert with one I have stored in file (DER)? Thank you in advance, Milan

Re: SSL_get_peer_certificate

2001-10-05 Thread Lutz Jaenicke
could I go about checking what is wrong? Thanks! Your analysis is not quite correct. SSL_get_peer_certificate() will always return the certificate sent by the peer, regardless of the verification result (you have to use SSL_get_verify_result() to check it out). The logicial explanation is therefore

SSL_get_peer_certificate

2001-10-04 Thread Andrew Finnell
Title: Message I'm having a problem getting my server on Solaris 8 ( Built with SunCC 5.2 ) to obtain a certificate from my client. I have set SSL_CTX_set_verify ( ctx , SSL_VERIFY_PEER,0 ) on both client and server. I have created valid certificates to the best of my knownledge. The same

Facing problem with SSL_get_peer_certificate() at the server side !!

2000-11-01 Thread Lakshminarayanan Venkatesan
Hello, I am running the demo client/server implementaation and i am unable to get the SSL_get_peer_certificate() function working at the server side. The server program alsways say "Client does not have the certificate." Eventhough the client.pem file is authenticatedd the data is

How to write a client to let the SSL_get_peer_certificate call on server side return a X509 point

2000-06-02 Thread Philip F. Qi
Hi: Do you know how to write a client program with certification? I don't know how to setup my client program to use a pem file and let the server side get the certification. In one words, how to write a client program to let the SSL_get_peer_certificate() function call on server side

Re: Re:How to write a client to let the SSL_get_peer_certificate call on server side return a X509 point

2000-06-02 Thread Philip F. Qi
Hi Marcos: I know a documents about how the callback. The URL is http://www2.psy.uq.edu.au/~ftp/Crypto/certs.html I do what this document suggest, but my server's SSL_get_peer_certificate() still return NULL. I realy don't know why. But, thank you very much. I will try something