Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Indy TCPServer/TCPClient
#8
(05-14-2018, 07:11 AM)wzehntner Wrote: The AError that is returned is always = 19
Where can I find a list of AError-codes ?

They come from OpenSSL's X509_STORE_CTX_get_error() function. Error 19 is X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN. Most of the X509_V_ERR_... error codes are defined in Indy's IdSSLOpenSSLHeaders unit (the rest are in the x509_vfy.h header file in OpenSSL's SDK).

(05-14-2018, 07:11 AM)wzehntner Wrote: Does a self-signed certificate always return this error-code

Yes.

(05-14-2018, 07:11 AM)wzehntner Wrote: I also noticed that the Verify-event is triggered 3 times when ADepth = 1
Why is that so ?

I can't answer that.

(05-14-2018, 07:11 AM)wzehntner Wrote: How can I display (on the client side) some information about the server-certificate (thus giving the client a chance to accept and trust the certificate)?

All the certificate information is available via the TIdX509 object that is provided in the OnVerifyPeer event. Some details are exposed in nice property wrappers. Other details you will have to query manually from OpenSSL directly, using the raw PX509 handle from the TIdX509.Certificate property.

Reply


Messages In This Thread
Indy TCPServer/TCPClient - by wzehntner - 05-03-2018, 02:44 PM
RE: Indy TCPServer/TCPClient - by rlebeau - 05-03-2018, 07:32 PM
RE: Indy TCPServer/TCPClient - by wzehntner - 05-04-2018, 08:53 AM
RE: Indy TCPServer/TCPClient - by rlebeau - 05-07-2018, 06:30 PM
RE: Indy TCPServer/TCPClient - by wzehntner - 05-14-2018, 07:11 AM
RE: Indy TCPServer/TCPClient - by rlebeau - 05-14-2018, 06:27 PM
RE: Indy TCPServer/TCPClient - by wzehntner - 05-17-2018, 08:21 AM
RE: Indy TCPServer/TCPClient - by rlebeau - 05-17-2018, 06:48 PM
RE: Indy TCPServer/TCPClient - by morhous - 05-14-2018, 07:58 AM
RE: Indy TCPServer/TCPClient - by kudzu - 05-14-2018, 02:22 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)